Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = "version" Usage = "Shows slim and docker version information" Alias = "v" )
Variables ¶
View Source
var CLI = &cli.Command{ Name: Name, Aliases: []string{Alias}, Usage: Usage, Action: func(ctx *cli.Context) error { doDebug := ctx.Bool(commands.FlagDebug) inContainer, isDSImage := commands.IsInContainer(ctx.Bool(commands.FlagInContainer)) clientConfig := commands.GetDockerClientConfig(ctx) xc := app.NewExecutionContext(Name, ctx.String(commands.FlagConsoleFormat)) OnCommand(xc, doDebug, inContainer, isDSImage, clientConfig) return nil }, }
View Source
var CommandSuggestion = prompt.Suggest{ Text: Name, Description: Usage, }
Functions ¶
func OnCommand ¶
func OnCommand( xc *app.ExecutionContext, doDebug, inContainer, isDSImage bool, clientConfig *config.DockerClient)
OnCommand implements the 'version' command
func RegisterCommand ¶
func RegisterCommand()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.