Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = "update" Usage = "Updates slim" Alias = "u" )
Variables ¶
View Source
var CLI = &cli.Command{ Name: Name, Aliases: []string{Alias}, Usage: Usage, Flags: []cli.Flag{ initFlagShowProgress(), }, Action: func(ctx *cli.Context) error { doDebug := ctx.Bool(command.FlagDebug) statePath := ctx.String(command.FlagStatePath) inContainer, isDSImage := command.IsInContainer(ctx.Bool(command.FlagInContainer)) archiveState := command.ArchiveState(ctx.String(command.FlagArchiveState), inContainer) doShowProgress := ctx.Bool(command.FlagShowProgress) OnCommand(doDebug, statePath, archiveState, inContainer, isDSImage, doShowProgress) return nil }, }
View Source
var CommandFlagSuggestions = &command.FlagSuggestions{ Names: []prompt.Suggest{ {Text: command.FullFlagName(command.FlagShowProgress), Description: command.FlagShowProgressUsage}, }, Values: map[string]command.CompleteValue{ command.FullFlagName(command.FlagShowProgress): command.CompleteProgress, }, }
View Source
var CommandSuggestion = prompt.Suggest{ Text: Name, Description: Usage, }
Functions ¶
func OnCommand ¶
func OnCommand(doDebug bool, statePath, archiveState string, inContainer, isDSImage bool, doShowProgress bool)
OnCommand implements the 'update' command
func RegisterCommand ¶
func RegisterCommand()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.