func (c *publishCmd) flags() { gnuflag.BoolVar(&c.makePublic, "public", false, i18n.G("Make the image public")) gnuflag.Var(&c.pAliases, "alias", i18n.G("New alias to define at target")) gnuflag.BoolVar(&c.Force, "force", false, i18n.G("Stop the container if currently running")) gnuflag.BoolVar(&c.Force, "f", false, i18n.G("Stop the container if currently running")) gnuflag.StringVar(&c.compression_algorithm, "compression", "", i18n.G("Define a compression algorithm: for image or none")) }
func (c *launchCmd) flags() { massage_args() gnuflag.Var(&profArgs, "profile", "Profile to apply to the new container") gnuflag.Var(&profArgs, "p", "Profile to apply to the new container") gnuflag.BoolVar(&ephem, "ephemeral", false, gettext.Gettext("Ephemeral container")) gnuflag.BoolVar(&ephem, "e", false, gettext.Gettext("Ephemeral container")) }
func (c *imageCmd) flags() { gnuflag.BoolVar(&c.publicImage, "public", false, i18n.G("Make image public")) gnuflag.BoolVar(&c.copyAliases, "copy-aliases", false, i18n.G("Copy aliases from source")) gnuflag.BoolVar(&c.autoUpdate, "auto-update", false, i18n.G("Keep the image up to date after initial copy")) gnuflag.Var(&c.addAliases, "alias", i18n.G("New alias to define at target")) gnuflag.StringVar(&c.format, "format", "table", i18n.G("Format")) }
func (c *copyCmd) flags() { gnuflag.Var(&c.confArgs, "config", i18n.G("Config key/value to apply to the new container")) gnuflag.Var(&c.confArgs, "c", i18n.G("Config key/value to apply to the new container")) gnuflag.Var(&c.profArgs, "profile", i18n.G("Profile to apply to the new container")) gnuflag.Var(&c.profArgs, "p", i18n.G("Profile to apply to the new container")) gnuflag.BoolVar(&c.ephem, "ephemeral", false, i18n.G("Ephemeral container")) gnuflag.BoolVar(&c.ephem, "e", false, i18n.G("Ephemeral container")) }
func (c *actionCmd) flags() { if c.hasTimeout { gnuflag.IntVar(&c.timeout, "timeout", -1, i18n.G("Time to wait for the container before killing it.")) gnuflag.BoolVar(&c.force, "force", false, i18n.G("Force the container to shutdown.")) gnuflag.BoolVar(&c.stateful, "stateful", false, i18n.G("Store the container state (only for stop).")) gnuflag.BoolVar(&c.stateless, "stateless", false, i18n.G("Ignore the container state (only forstart).")) } }
func (c *launchCmd) flags() { massage_args() gnuflag.Var(&confArgs, "config", i18n.G("Config key/value to apply to the new container")) gnuflag.Var(&confArgs, "c", i18n.G("Config key/value to apply to the new container")) gnuflag.Var(&profArgs, "profile", i18n.G("Profile to apply to the new container")) gnuflag.Var(&profArgs, "p", i18n.G("Profile to apply to the new container")) gnuflag.BoolVar(&ephem, "ephemeral", false, i18n.G("Ephemeral container")) gnuflag.BoolVar(&ephem, "e", false, i18n.G("Ephemeral container")) }
func (c *fileCmd) flags() { gnuflag.IntVar(&c.uid, "uid", -1, i18n.G("Set the file's uid on push")) gnuflag.IntVar(&c.gid, "gid", -1, i18n.G("Set the file's gid on push")) gnuflag.StringVar(&c.mode, "mode", "", i18n.G("Set the file's perms on push")) gnuflag.BoolVar(&c.recursive, "recursive", false, i18n.G("Recursively push or pull files")) gnuflag.BoolVar(&c.recursive, "r", false, i18n.G("Recursively push or pull files")) gnuflag.BoolVar(&c.mkdirs, "create-dirs", false, i18n.G("Create any directories necessary")) gnuflag.BoolVar(&c.mkdirs, "p", false, i18n.G("Create any directories necessary")) }
func (c *initCmd) flags() { c.massage_args() gnuflag.Var(&c.confArgs, "config", i18n.G("Config key/value to apply to the new container")) gnuflag.Var(&c.confArgs, "c", i18n.G("Config key/value to apply to the new container")) gnuflag.Var(&c.profArgs, "profile", i18n.G("Profile to apply to the new container")) gnuflag.Var(&c.profArgs, "p", i18n.G("Profile to apply to the new container")) gnuflag.BoolVar(&c.ephem, "ephemeral", false, i18n.G("Ephemeral container")) gnuflag.BoolVar(&c.ephem, "e", false, i18n.G("Ephemeral container")) gnuflag.StringVar(&c.network, "network", "", i18n.G("Network name")) gnuflag.StringVar(&c.network, "n", "", i18n.G("Network name")) }
func (c *publishCmd) flags() { gnuflag.BoolVar(&makePublic, "public", false, gettext.Gettext("Make the image public")) gnuflag.Var(&pAliases, "alias", gettext.Gettext("New alias to define at target")) }
func (c *restoreCmd) flags() { gnuflag.BoolVar(&c.stateful, "stateful", false, i18n.G("Whether or not to restore the container's running state from snapshot (if available)")) }
func (c *imageCmd) flags() { gnuflag.BoolVar(&publicImage, "public", false, gettext.Gettext("Make image public")) gnuflag.BoolVar(©Aliases, "copy-aliases", false, gettext.Gettext("Copy aliases from source")) gnuflag.Var(&addAliases, "alias", gettext.Gettext("New alias to define at target")) }
func (c *deleteCmd) flags() { gnuflag.BoolVar(&c.force, "f", false, i18n.G("Force the removal of stopped containers.")) gnuflag.BoolVar(&c.force, "force", false, i18n.G("Force the removal of stopped containers.")) gnuflag.BoolVar(&c.interactive, "i", false, i18n.G("Require user confirmation.")) gnuflag.BoolVar(&c.interactive, "interactive", false, i18n.G("Require user confirmation.")) }
func (c *remoteCmd) flags() { gnuflag.BoolVar(&c.acceptCert, "accept-certificate", false, i18n.G("Accept certificate")) gnuflag.StringVar(&c.password, "password", "", i18n.G("Remote admin password")) gnuflag.StringVar(&c.protocol, "protocol", "", i18n.G("Server protocol (lxd or simplestreams)")) gnuflag.BoolVar(&c.public, "public", false, i18n.G("Public image server")) }
func (c *listCmd) flags() { gnuflag.StringVar(&c.columnsRaw, "c", "ns46tS", i18n.G("Columns")) gnuflag.StringVar(&c.columnsRaw, "columns", "ns46tS", i18n.G("Columns")) gnuflag.StringVar(&c.format, "format", "table", i18n.G("Format")) gnuflag.BoolVar(&c.fast, "fast", false, i18n.G("Fast mode (same as --columns=nsacPt")) }
func (c *helpCmd) flags() { gnuflag.BoolVar(&showAll, "all", false, i18n.G("Show all commands (not just interesting ones)")) }
func (c *copyCmd) flags() { gnuflag.BoolVar(&c.ephem, "ephemeral", false, i18n.G("Ephemeral container")) gnuflag.BoolVar(&c.ephem, "e", false, i18n.G("Ephemeral container")) }
func (c *snapshotCmd) flags() { gnuflag.BoolVar(&c.stateful, "stateful", false, i18n.G("Whether or not to snapshot the container's running state")) }
func (c *listCmd) flags() { gnuflag.StringVar(&c.chosenColumnRunes, "c", "ns46tS", i18n.G("Columns")) gnuflag.StringVar(&c.chosenColumnRunes, "columns", "ns46tS", i18n.G("Columns")) gnuflag.BoolVar(&c.fast, "fast", false, i18n.G("Fast mode (same as --columns=nsacPt")) }
func (c *configCmd) flags() { gnuflag.BoolVar(&c.expanded, "expanded", false, i18n.G("Whether to show the expanded configuration")) }
func (c *remoteCmd) flags() { gnuflag.BoolVar(&c.acceptCert, "accept-certificate", false, i18n.G("Accept certificate")) gnuflag.StringVar(&c.password, "password", "", i18n.G("Remote admin password")) gnuflag.BoolVar(&c.public, "public", false, i18n.G("Public image server")) }
func (c *remoteCmd) flags() { gnuflag.BoolVar(&c.acceptCert, "accept-certificate", false, gettext.Gettext("Accept certificate")) gnuflag.StringVar(&c.password, "password", "", gettext.Gettext("Remote admin password")) }
func (c *copyCmd) flags() { gnuflag.BoolVar(&c.ephem, "ephemeral", false, gettext.Gettext("Ephemeral container")) gnuflag.BoolVar(&c.ephem, "e", false, gettext.Gettext("Ephemeral container")) }
func (c *actionCmd) flags() { if c.hasTimeout { gnuflag.IntVar(&timeout, "timeout", -1, gettext.Gettext("Time to wait for the container before killing it.")) gnuflag.BoolVar(&force, "force", false, gettext.Gettext("Force the container to shutdown.")) } }
func (c *infoCmd) flags() { gnuflag.BoolVar(&c.showLog, "show-log", false, gettext.Gettext("Show the container's last 100 log lines?")) }
func (c *publishCmd) flags() { gnuflag.BoolVar(&c.makePublic, "public", false, i18n.G("Make the image public")) gnuflag.Var(&c.pAliases, "alias", i18n.G("New alias to define at target")) gnuflag.BoolVar(&c.Force, "force", false, i18n.G("Stop the container if currently running")) gnuflag.BoolVar(&c.Force, "f", false, i18n.G("Stop the container if currently running")) }