Documentation
¶
Overview ¶
Package subcmd defines the various earth CLI subcommands (e.g., build, prune, init, debug) and their specific logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
// contains filtered or unexported fields
}
Bootstrap encapsulates the bootstrap command logic.
func NewBootstrap ¶
NewBootstrap creates a new Bootstrap command.
type Build ¶
type Build struct {
// contains filtered or unexported fields
}
Build encapsulates the build command logic.
func (*Build) ActionBuildImp ¶
func (b *Build) ActionBuildImp(ctx context.Context, cmd *cli.Command, flagArgs, nonFlagArgs []string) error
ActionBuildImp handles the "build" command implementation.
func (*Build) HiddenFlags ¶
HiddenFlags returns the hidden build flags.
type CLI ¶
type CLI interface {
App() *cli.Command
Version() string
GitSHA() string
Flags() *flag.Global
Console() conslogging.ConsoleLogger
SetConsole(conslogging.ConsoleLogger)
InitFrontend(context.Context, *cli.Command) error
Cfg() *config.Config
SetCommandName(name string)
GetBuildkitClient(context.Context, *cli.Command) (client *client.Client, err error)
LogbusSetup() *setup.BusSetup
Logbus() *logbus.Bus
AddDeferredFunc(f func())
}
CLI is the interface for the base earth CLI.
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config encapsulates the config command logic.
type Debug ¶
type Debug struct {
// contains filtered or unexported fields
}
Debug encapsulates the debug command logic.
type Doc ¶
type Doc struct {
// contains filtered or unexported fields
}
Doc encapsulates the doc command logic.
type Doc2Earth ¶
type Doc2Earth struct {
// contains filtered or unexported fields
}
Doc2Earth encapsulates the doc2earth command logic.
func NewDoc2Earth ¶
NewDoc2Earth creates a new Doc2Earth command.
type Init ¶
type Init struct {
// contains filtered or unexported fields
}
Init encapsulates the init command logic.
type List ¶
type List struct {
// contains filtered or unexported fields
}
List encapsulates the ls command logic.
type Prune ¶
type Prune struct {
// contains filtered or unexported fields
}
Prune encapsulates the prune command logic.