Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = map[string]types.Command{ "enter": { Description: "Enters the environment", Fn: enter, }, "build/me": { Description: "Rebuilds the builder", Fn: func(ctx context.Context, deps types.DepsFunc) error { return golang.Build(ctx, deps, golang.BuildConfig{ Platform: tools.PlatformLocal, PackagePath: "build/cmd/builder", BinOutputPath: filepath.Join("bin", ".cache", filepath.Base(lo.Must(os.Executable()))), }) }, }, "tools/setup": { Description: "Installs all the tools for the host operating system", Fn: tools.EnsureAll, }, "tools/verify": { Description: "Verifies the checksums of all the tools", Fn: tools.VerifyChecksums, }, }
Commands is the list of standard commands useful for every environment.
Functions ¶
func Main ¶
func Main(name, version string)
Main receives configuration and runs registeredCommands.
func RegisterCommands ¶
RegisterCommands registers registeredCommands.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.