generate

package
v0.0.0-...-b872246 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEnvrc

func CreateEnvrc(ctx context.Context, path string, envFlags devopt.EnvFlags) error

func EnvrcContent

func EnvrcContent(w io.Writer, envFlags devopt.EnvFlags) error

Types

type Options

type Options struct {
	Path           string
	RootUser       bool
	IsDevcontainer bool
	Pkgs           []string
	LocalFlakeDirs []string
}

func (*Options) CreateDevcontainer

func (g *Options) CreateDevcontainer(ctx context.Context) error

CreateDevcontainer creates a devcontainer.json in path and writes getDevcontainerContent's output into it

func (*Options) CreateDockerfile

func (g *Options) CreateDockerfile(ctx context.Context) error

CreateDockerfile creates a Dockerfile in path and writes devcontainerDockerfile.tmpl's content into it

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL