Documentation
¶
Overview ¶
Package meta contains functionality around management of the Satlab CLI binary itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CipdEnsureFile = "/cipd/spec"
CipdEnsureFile is the path to the ensure file.
View Source
var CipdRoot = "/cipd"
CipdRoot is the path to root directory for CIPD.
View Source
var SkipAutoUpdateEnvVar = "SKIP_AUTO_UPDATE"
SkipAutoUpdateEnvVar is the env var we look at to determine if we should not attempt to autoupdate.
View Source
var Update = &subcommands.Command{ UsageLine: "upgrade", ShortDesc: "upgrade satlab CIPD packages", LongDesc: `Upgrade satlab CIPD packages. This is a thin wrapper around CIPD. Wil`, CommandRun: func() subcommands.CommandRun { c := &updateRun{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.Flags.BoolVar(&c.silent, "silent", false, "Whether to run silently.") return c }, }
Update subcommand: Update satlab tool.
View Source
var Version = &subcommands.Command{ UsageLine: "version", ShortDesc: "print satlab version", LongDesc: "Print satlab version.", CommandRun: func() subcommands.CommandRun { c := &versionRun{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) return c }, }
Version subcommand: the version of satlab
Functions ¶
func UpdateThenRun ¶
func UpdateThenRun(app *cli.Application) int
UpdateThenRun performs an upgrade of CLI tools (if applicable) and then executes the user's command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.