Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = "update" Usage = "Updates docker-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(commands.FlagDebug) statePath := ctx.String(commands.FlagStatePath) inContainer, isDSImage := commands.IsInContainer(ctx.Bool(commands.FlagInContainer)) archiveState := commands.ArchiveState(ctx.String(commands.FlagArchiveState), inContainer) doShowProgress := ctx.Bool(commands.FlagShowProgress) OnCommand(doDebug, statePath, archiveState, inContainer, isDSImage, doShowProgress) return nil }, }
View Source
var CommandFlagSuggestions = &commands.FlagSuggestions{ Names: []prompt.Suggest{ {Text: commands.FullFlagName(commands.FlagShowProgress), Description: commands.FlagShowProgressUsage}, }, Values: map[string]commands.CompleteValue{ commands.FullFlagName(commands.FlagShowProgress): commands.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' docker-slim command
func RegisterCommand ¶
func RegisterCommand()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.