use uppercase letters for flag usage
Signed-off-by: panguicai008 <guicai.pan@daocloud.io>
This commit is contained in:
parent
29e10a192a
commit
5c9c630c33
@ -82,7 +82,7 @@ containerd CLI
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "address, a",
|
||||
Usage: "address for containerd's GRPC server",
|
||||
Usage: "Address for containerd's GRPC server",
|
||||
Value: defaults.DefaultAddress,
|
||||
EnvVar: "CONTAINERD_ADDRESS",
|
||||
},
|
||||
@ -96,7 +96,7 @@ containerd CLI
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "namespace, n",
|
||||
Usage: "namespace to use with commands",
|
||||
Usage: "Namespace to use with commands",
|
||||
Value: namespaces.Default,
|
||||
EnvVar: namespaces.NamespaceEnvVar,
|
||||
},
|
||||
|
@ -32,7 +32,7 @@ var (
|
||||
SnapshotterFlags = []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "snapshotter",
|
||||
Usage: "snapshotter name. Empty value stands for the default value.",
|
||||
Usage: "Snapshotter name. Empty value stands for the default value.",
|
||||
EnvVar: "CONTAINERD_SNAPSHOTTER",
|
||||
},
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
|
||||
var checkpointCommand = cli.Command{
|
||||
Name: "checkpoint",
|
||||
Usage: "checkpoint a container",
|
||||
Usage: "Checkpoint a container",
|
||||
ArgsUsage: "CONTAINER REF",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
|
@ -37,7 +37,7 @@ import (
|
||||
// Command is the cli command for managing containers
|
||||
var Command = cli.Command{
|
||||
Name: "containers",
|
||||
Usage: "manage containers",
|
||||
Usage: "Manage containers",
|
||||
Aliases: []string{"c", "container"},
|
||||
Subcommands: []cli.Command{
|
||||
createCommand,
|
||||
@ -52,7 +52,7 @@ var Command = cli.Command{
|
||||
|
||||
var createCommand = cli.Command{
|
||||
Name: "create",
|
||||
Usage: "create container",
|
||||
Usage: "Create container",
|
||||
ArgsUsage: "[flags] Image|RootFS CONTAINER [COMMAND] [ARG...]",
|
||||
SkipArgReorder: true,
|
||||
Flags: append(append(commands.SnapshotterFlags, []cli.Flag{commands.SnapshotterLabels}...), commands.ContainerFlags...),
|
||||
@ -94,7 +94,7 @@ var createCommand = cli.Command{
|
||||
var listCommand = cli.Command{
|
||||
Name: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Usage: "list containers",
|
||||
Usage: "List containers",
|
||||
ArgsUsage: "[flags] [<filter>, ...]",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
@ -147,7 +147,7 @@ var listCommand = cli.Command{
|
||||
|
||||
var deleteCommand = cli.Command{
|
||||
Name: "delete",
|
||||
Usage: "delete one or more existing containers",
|
||||
Usage: "Delete one or more existing containers",
|
||||
ArgsUsage: "[flags] CONTAINER [CONTAINER, ...]",
|
||||
Aliases: []string{"del", "remove", "rm"},
|
||||
Flags: []cli.Flag{
|
||||
@ -208,7 +208,7 @@ func deleteContainer(ctx context.Context, client *containerd.Client, id string,
|
||||
|
||||
var setLabelsCommand = cli.Command{
|
||||
Name: "label",
|
||||
Usage: "set and clear labels for a container",
|
||||
Usage: "Set and clear labels for a container",
|
||||
ArgsUsage: "[flags] CONTAINER [<key>=<value>, ...]",
|
||||
Description: "set and clear labels for a container",
|
||||
Flags: []cli.Flag{},
|
||||
@ -246,7 +246,7 @@ var setLabelsCommand = cli.Command{
|
||||
|
||||
var infoCommand = cli.Command{
|
||||
Name: "info",
|
||||
Usage: "get info about a container",
|
||||
Usage: "Get info about a container",
|
||||
ArgsUsage: "CONTAINER",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
|
@ -31,7 +31,7 @@ import (
|
||||
|
||||
var restoreCommand = cli.Command{
|
||||
Name: "restore",
|
||||
Usage: "restore a container from checkpoint",
|
||||
Usage: "Restore a container from checkpoint",
|
||||
ArgsUsage: "CONTAINER REF",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
|
@ -61,7 +61,7 @@ var (
|
||||
|
||||
getCommand = cli.Command{
|
||||
Name: "get",
|
||||
Usage: "get the data for an object",
|
||||
Usage: "Get the data for an object",
|
||||
ArgsUsage: "[<digest>, ...]",
|
||||
Description: "display the image object",
|
||||
Action: func(context *cli.Context) error {
|
||||
@ -90,7 +90,7 @@ var (
|
||||
|
||||
ingestCommand = cli.Command{
|
||||
Name: "ingest",
|
||||
Usage: "accept content into the store",
|
||||
Usage: "Accept content into the store",
|
||||
ArgsUsage: "[flags] <key>",
|
||||
Description: "ingest objects into the local content store",
|
||||
Flags: []cli.Flag{
|
||||
@ -132,13 +132,13 @@ var (
|
||||
|
||||
activeIngestCommand = cli.Command{
|
||||
Name: "active",
|
||||
Usage: "display active transfers",
|
||||
Usage: "Display active transfers",
|
||||
ArgsUsage: "[flags] [<regexp>]",
|
||||
Description: "display the ongoing transfers",
|
||||
Flags: []cli.Flag{
|
||||
cli.DurationFlag{
|
||||
Name: "timeout, t",
|
||||
Usage: "total timeout for fetch",
|
||||
Usage: "Total timeout for fetch",
|
||||
EnvVar: "CONTAINERD_FETCH_TIMEOUT",
|
||||
},
|
||||
cli.StringFlag{
|
||||
@ -175,7 +175,7 @@ var (
|
||||
listCommand = cli.Command{
|
||||
Name: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Usage: "list all blobs in the store",
|
||||
Usage: "List all blobs in the store",
|
||||
ArgsUsage: "[flags]",
|
||||
Description: "list blobs in the content store",
|
||||
Flags: []cli.Flag{
|
||||
@ -234,7 +234,7 @@ var (
|
||||
|
||||
setLabelsCommand = cli.Command{
|
||||
Name: "label",
|
||||
Usage: "add labels to content",
|
||||
Usage: "Add labels to content",
|
||||
ArgsUsage: "<digest> [<label>=<value> ...]",
|
||||
Description: "labels blobs in the content store",
|
||||
Action: func(context *cli.Context) error {
|
||||
@ -288,7 +288,7 @@ var (
|
||||
|
||||
editCommand = cli.Command{
|
||||
Name: "edit",
|
||||
Usage: "edit a blob and return a new digest",
|
||||
Usage: "Edit a blob and return a new digest",
|
||||
ArgsUsage: "[flags] <digest>",
|
||||
Description: "edit a blob and return a new digest",
|
||||
Flags: []cli.Flag{
|
||||
@ -298,7 +298,7 @@ var (
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "editor",
|
||||
Usage: "select editor (vim, emacs, etc.)",
|
||||
Usage: "Select editor (vim, emacs, etc.)",
|
||||
EnvVar: "EDITOR",
|
||||
},
|
||||
},
|
||||
@ -358,7 +358,7 @@ var (
|
||||
deleteCommand = cli.Command{
|
||||
Name: "delete",
|
||||
Aliases: []string{"del", "remove", "rm"},
|
||||
Usage: "permanently delete one or more blobs",
|
||||
Usage: "Permanently delete one or more blobs",
|
||||
ArgsUsage: "[<digest>, ...]",
|
||||
Description: `Delete one or more blobs permanently. Successfully deleted
|
||||
blobs are printed to stdout.`,
|
||||
@ -406,7 +406,7 @@ var (
|
||||
// needed.
|
||||
fetchObjectCommand = cli.Command{
|
||||
Name: "fetch-object",
|
||||
Usage: "retrieve objects from a remote",
|
||||
Usage: "Retrieve objects from a remote",
|
||||
ArgsUsage: "[flags] <remote> <object> [<hint>, ...]",
|
||||
Description: `Fetch objects by identifier from a remote.`,
|
||||
Flags: commands.RegistryFlags,
|
||||
@ -448,7 +448,7 @@ var (
|
||||
|
||||
fetchBlobCommand = cli.Command{
|
||||
Name: "fetch-blob",
|
||||
Usage: "retrieve blobs from a remote",
|
||||
Usage: "Retrieve blobs from a remote",
|
||||
ArgsUsage: "[flags] <remote> [<digest>, ...]",
|
||||
Description: `Fetch blobs by digests from a remote.`,
|
||||
Flags: commands.RegistryFlags,
|
||||
@ -502,7 +502,7 @@ var (
|
||||
|
||||
pushObjectCommand = cli.Command{
|
||||
Name: "push-object",
|
||||
Usage: "push an object to a remote",
|
||||
Usage: "Push an object to a remote",
|
||||
ArgsUsage: "[flags] <remote> <object> <type>",
|
||||
Description: `Push objects by identifier to a remote.`,
|
||||
Flags: commands.RegistryFlags,
|
||||
|
@ -42,10 +42,10 @@ import (
|
||||
|
||||
var fetchCommand = cli.Command{
|
||||
Name: "fetch",
|
||||
Usage: "fetch all content for an image into containerd",
|
||||
Usage: "Fetch all content for an image into containerd",
|
||||
ArgsUsage: "[flags] <remote> <object>",
|
||||
Description: `Fetch an image into containerd.
|
||||
|
||||
|
||||
This command ensures that containerd has all the necessary resources to build
|
||||
an image's rootfs and convert the configuration to a runtime format supported
|
||||
by containerd.
|
||||
|
@ -34,7 +34,7 @@ import (
|
||||
var Command = cli.Command{
|
||||
Name: "events",
|
||||
Aliases: []string{"event"},
|
||||
Usage: "display containerd events",
|
||||
Usage: "Display containerd events",
|
||||
Action: func(context *cli.Context) error {
|
||||
client, ctx, cancel, err := commands.NewClient(context)
|
||||
if err != nil {
|
||||
|
@ -30,7 +30,7 @@ import (
|
||||
|
||||
var convertCommand = cli.Command{
|
||||
Name: "convert",
|
||||
Usage: "convert an image",
|
||||
Usage: "Convert an image",
|
||||
ArgsUsage: "[flags] <source_ref> <target_ref>",
|
||||
Description: `Convert an image format.
|
||||
|
||||
|
@ -35,7 +35,7 @@ import (
|
||||
|
||||
var exportCommand = cli.Command{
|
||||
Name: "export",
|
||||
Usage: "export images",
|
||||
Usage: "Export images",
|
||||
ArgsUsage: "[flags] <out> <image> ...",
|
||||
Description: `Export images to an OCI tar archive.
|
||||
|
||||
@ -64,7 +64,7 @@ When '--all-platforms' is given all images in a manifest list must be available.
|
||||
},
|
||||
cli.BoolTFlag{
|
||||
Name: "local",
|
||||
Usage: "run export locally rather than through transfer API",
|
||||
Usage: "Run export locally rather than through transfer API",
|
||||
},
|
||||
},
|
||||
Action: func(context *cli.Context) error {
|
||||
|
@ -37,7 +37,7 @@ import (
|
||||
var Command = cli.Command{
|
||||
Name: "images",
|
||||
Aliases: []string{"image", "i"},
|
||||
Usage: "manage images",
|
||||
Usage: "Manage images",
|
||||
Subcommands: cli.Commands{
|
||||
checkCommand,
|
||||
exportCommand,
|
||||
@ -59,7 +59,7 @@ var Command = cli.Command{
|
||||
var listCommand = cli.Command{
|
||||
Name: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Usage: "list images known to containerd",
|
||||
Usage: "List images known to containerd",
|
||||
ArgsUsage: "[flags] [<filter>, ...]",
|
||||
Description: "list images registered with containerd",
|
||||
Flags: []cli.Flag{
|
||||
@ -142,7 +142,7 @@ var listCommand = cli.Command{
|
||||
|
||||
var setLabelsCommand = cli.Command{
|
||||
Name: "label",
|
||||
Usage: "set and clear labels for an image",
|
||||
Usage: "Set and clear labels for an image",
|
||||
ArgsUsage: "[flags] <name> [<key>=<value>, ...]",
|
||||
Description: "set and clear labels for an image",
|
||||
Flags: []cli.Flag{
|
||||
@ -201,7 +201,7 @@ var setLabelsCommand = cli.Command{
|
||||
|
||||
var checkCommand = cli.Command{
|
||||
Name: "check",
|
||||
Usage: "check existing images to ensure all content is available locally",
|
||||
Usage: "Check existing images to ensure all content is available locally",
|
||||
ArgsUsage: "[flags] [<filter>, ...]",
|
||||
Description: "check existing images to ensure all content is available locally",
|
||||
Flags: append([]cli.Flag{
|
||||
@ -315,7 +315,7 @@ var checkCommand = cli.Command{
|
||||
var removeCommand = cli.Command{
|
||||
Name: "delete",
|
||||
Aliases: []string{"del", "remove", "rm"},
|
||||
Usage: "remove one or more images by reference",
|
||||
Usage: "Remove one or more images by reference",
|
||||
ArgsUsage: "[flags] <ref> [<ref>, ...]",
|
||||
Description: "remove one or more images by reference",
|
||||
Flags: []cli.Flag{
|
||||
|
@ -37,7 +37,7 @@ import (
|
||||
|
||||
var importCommand = cli.Command{
|
||||
Name: "import",
|
||||
Usage: "import images",
|
||||
Usage: "Import images",
|
||||
ArgsUsage: "[flags] <in>",
|
||||
Description: `Import images from a tar stream.
|
||||
Implemented formats:
|
||||
|
@ -32,7 +32,7 @@ import (
|
||||
|
||||
var mountCommand = cli.Command{
|
||||
Name: "mount",
|
||||
Usage: "mount an image to a target path",
|
||||
Usage: "Mount an image to a target path",
|
||||
ArgsUsage: "[flags] <ref> <target>",
|
||||
Description: `Mount an image rootfs to a specified path.
|
||||
|
||||
|
@ -41,7 +41,7 @@ import (
|
||||
|
||||
var pullCommand = cli.Command{
|
||||
Name: "pull",
|
||||
Usage: "pull an image from a remote",
|
||||
Usage: "Pull an image from a remote",
|
||||
ArgsUsage: "[flags] <ref>",
|
||||
Description: `Fetch and prepare an image for use in containerd.
|
||||
|
||||
|
@ -46,7 +46,7 @@ import (
|
||||
|
||||
var pushCommand = cli.Command{
|
||||
Name: "push",
|
||||
Usage: "push an image to a remote",
|
||||
Usage: "Push an image to a remote",
|
||||
ArgsUsage: "[flags] <remote> [<local>]",
|
||||
Description: `Pushes an image reference from containerd.
|
||||
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
|
||||
var tagCommand = cli.Command{
|
||||
Name: "tag",
|
||||
Usage: "tag an image",
|
||||
Usage: "Tag an image",
|
||||
ArgsUsage: "[flags] <source_ref> <target_ref> [<target_ref>, ...]",
|
||||
Description: `Tag an image for use in containerd.`,
|
||||
Flags: []cli.Flag{
|
||||
@ -38,7 +38,7 @@ var tagCommand = cli.Command{
|
||||
},
|
||||
cli.BoolTFlag{
|
||||
Name: "local",
|
||||
Usage: "run tag locally rather than through transfer API",
|
||||
Usage: "Run tag locally rather than through transfer API",
|
||||
},
|
||||
},
|
||||
Action: func(context *cli.Context) error {
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
|
||||
var unmountCommand = cli.Command{
|
||||
Name: "unmount",
|
||||
Usage: "unmount the image from the target",
|
||||
Usage: "Unmount the image from the target",
|
||||
ArgsUsage: "[flags] <target>",
|
||||
Description: "Unmount the image rootfs from the specified target.",
|
||||
Flags: append(append(commands.RegistryFlags, append(commands.SnapshotterFlags, commands.LabelFlag)...),
|
||||
|
@ -25,7 +25,7 @@ import (
|
||||
// Command to install binary packages
|
||||
var Command = cli.Command{
|
||||
Name: "install",
|
||||
Usage: "install a new package",
|
||||
Usage: "Install a new package",
|
||||
ArgsUsage: "<ref>",
|
||||
Description: "install a new package",
|
||||
Flags: []cli.Flag{
|
||||
|
@ -44,7 +44,7 @@ var listCommand = cli.Command{
|
||||
|
||||
Name: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Usage: "list all active leases",
|
||||
Usage: "List all active leases",
|
||||
ArgsUsage: "[flags] <filter>",
|
||||
Description: "list active leases by containerd",
|
||||
Flags: []cli.Flag{
|
||||
@ -101,7 +101,7 @@ var listCommand = cli.Command{
|
||||
|
||||
var createCommand = cli.Command{
|
||||
Name: "create",
|
||||
Usage: "create lease",
|
||||
Usage: "Create lease",
|
||||
ArgsUsage: "[flags] <label>=<value> ...",
|
||||
Description: "create a new lease",
|
||||
Flags: []cli.Flag{
|
||||
@ -155,7 +155,7 @@ var createCommand = cli.Command{
|
||||
var deleteCommand = cli.Command{
|
||||
Name: "delete",
|
||||
Aliases: []string{"del", "remove", "rm"},
|
||||
Usage: "delete a lease",
|
||||
Usage: "Delete a lease",
|
||||
ArgsUsage: "[flags] <lease id> ...",
|
||||
Description: "delete a lease",
|
||||
Flags: []cli.Flag{
|
||||
|
@ -34,7 +34,7 @@ import (
|
||||
var Command = cli.Command{
|
||||
Name: "namespaces",
|
||||
Aliases: []string{"namespace", "ns"},
|
||||
Usage: "manage namespaces",
|
||||
Usage: "Manage namespaces",
|
||||
Subcommands: cli.Commands{
|
||||
createCommand,
|
||||
listCommand,
|
||||
@ -46,7 +46,7 @@ var Command = cli.Command{
|
||||
var createCommand = cli.Command{
|
||||
Name: "create",
|
||||
Aliases: []string{"c"},
|
||||
Usage: "create a new namespace",
|
||||
Usage: "Create a new namespace",
|
||||
ArgsUsage: "<name> [<key>=<value>]",
|
||||
Description: "create a new namespace. it must be unique",
|
||||
Action: func(context *cli.Context) error {
|
||||
@ -66,7 +66,7 @@ var createCommand = cli.Command{
|
||||
|
||||
var setLabelsCommand = cli.Command{
|
||||
Name: "label",
|
||||
Usage: "set and clear labels for a namespace",
|
||||
Usage: "Set and clear labels for a namespace",
|
||||
ArgsUsage: "<name> [<key>=<value>, ...]",
|
||||
Description: "set and clear labels for a namespace. empty value clears the label",
|
||||
Action: func(context *cli.Context) error {
|
||||
@ -92,7 +92,7 @@ var setLabelsCommand = cli.Command{
|
||||
var listCommand = cli.Command{
|
||||
Name: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Usage: "list namespaces",
|
||||
Usage: "List namespaces",
|
||||
ArgsUsage: "[flags]",
|
||||
Description: "list namespaces",
|
||||
Flags: []cli.Flag{
|
||||
@ -144,7 +144,7 @@ var listCommand = cli.Command{
|
||||
var removeCommand = cli.Command{
|
||||
Name: "remove",
|
||||
Aliases: []string{"rm"},
|
||||
Usage: "remove one or more namespaces",
|
||||
Usage: "Remove one or more namespaces",
|
||||
ArgsUsage: "<name> [<name>, ...]",
|
||||
Description: "remove one or more namespaces. for now, the namespace must be empty",
|
||||
Flags: []cli.Flag{
|
||||
|
@ -36,7 +36,7 @@ import (
|
||||
var Command = cli.Command{
|
||||
Name: "plugins",
|
||||
Aliases: []string{"plugin"},
|
||||
Usage: "provides information about containerd plugins",
|
||||
Usage: "Provides information about containerd plugins",
|
||||
Subcommands: []cli.Command{
|
||||
listCommand,
|
||||
},
|
||||
@ -45,7 +45,7 @@ var Command = cli.Command{
|
||||
var listCommand = cli.Command{
|
||||
Name: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Usage: "lists containerd plugins",
|
||||
Usage: "Lists containerd plugins",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "quiet,q",
|
||||
|
@ -133,7 +133,7 @@ var pprofProfileCommand = cli.Command{
|
||||
|
||||
var pprofTraceCommand = cli.Command{
|
||||
Name: "trace",
|
||||
Usage: "collect execution trace",
|
||||
Usage: "Collect execution trace",
|
||||
Flags: []cli.Flag{
|
||||
cli.DurationFlag{
|
||||
Name: "seconds,s",
|
||||
@ -164,7 +164,7 @@ var pprofTraceCommand = cli.Command{
|
||||
|
||||
var pprofBlockCommand = cli.Command{
|
||||
Name: "block",
|
||||
Usage: "goroutine blocking profile",
|
||||
Usage: "Goroutine blocking profile",
|
||||
Flags: []cli.Flag{
|
||||
cli.UintFlag{
|
||||
Name: "debug",
|
||||
|
@ -87,7 +87,7 @@ func parseMountFlag(m string) (specs.Mount, error) {
|
||||
// Command runs a container
|
||||
var Command = cli.Command{
|
||||
Name: "run",
|
||||
Usage: "run a container",
|
||||
Usage: "Run a container",
|
||||
ArgsUsage: "[flags] Image|RootFS ID [COMMAND] [ARG...]",
|
||||
SkipArgReorder: true,
|
||||
Flags: append([]cli.Flag{
|
||||
|
@ -36,7 +36,7 @@ import (
|
||||
var platformRunFlags = []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "isolated",
|
||||
Usage: "run the container with vm isolation",
|
||||
Usage: "Run the container with vm isolation",
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ import (
|
||||
var Command = cli.Command{
|
||||
Name: "sandboxes",
|
||||
Aliases: []string{"sandbox", "sb", "s"},
|
||||
Usage: "manage sandboxes",
|
||||
Usage: "Manage sandboxes",
|
||||
Subcommands: cli.Commands{
|
||||
runCommand,
|
||||
listCommand,
|
||||
@ -45,7 +45,7 @@ var Command = cli.Command{
|
||||
var runCommand = cli.Command{
|
||||
Name: "run",
|
||||
Aliases: []string{"create", "c", "r"},
|
||||
Usage: "run a new sandbox",
|
||||
Usage: "Run a new sandbox",
|
||||
ArgsUsage: "[flags] <pod-config.json> <sandbox-id>",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
@ -100,7 +100,7 @@ var runCommand = cli.Command{
|
||||
var listCommand = cli.Command{
|
||||
Name: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Usage: "list sandboxes",
|
||||
Usage: "List sandboxes",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringSliceFlag{
|
||||
Name: "filters",
|
||||
@ -147,7 +147,7 @@ var removeCommand = cli.Command{
|
||||
Name: "remove",
|
||||
Aliases: []string{"rm"},
|
||||
ArgsUsage: "<id> [<id>, ...]",
|
||||
Usage: "remove sandboxes",
|
||||
Usage: "Remove sandboxes",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "force, f",
|
||||
|
@ -44,7 +44,7 @@ import (
|
||||
var Command = cli.Command{
|
||||
Name: "snapshots",
|
||||
Aliases: []string{"snapshot"},
|
||||
Usage: "manage snapshots",
|
||||
Usage: "Manage snapshots",
|
||||
Flags: commands.SnapshotterFlags,
|
||||
Subcommands: cli.Commands{
|
||||
commitCommand,
|
||||
@ -65,7 +65,7 @@ var Command = cli.Command{
|
||||
var listCommand = cli.Command{
|
||||
Name: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Usage: "list snapshots",
|
||||
Usage: "List snapshots",
|
||||
Action: func(context *cli.Context) error {
|
||||
client, ctx, cancel, err := commands.NewClient(context)
|
||||
if err != nil {
|
||||
@ -93,7 +93,7 @@ var listCommand = cli.Command{
|
||||
|
||||
var diffCommand = cli.Command{
|
||||
Name: "diff",
|
||||
Usage: "get the diff of two snapshots. the default second snapshot is the first snapshot's parent.",
|
||||
Usage: "Get the diff of two snapshots. the default second snapshot is the first snapshot's parent.",
|
||||
ArgsUsage: "[flags] <idA> [<idB>]",
|
||||
Flags: append([]cli.Flag{
|
||||
cli.StringFlag{
|
||||
@ -195,7 +195,7 @@ func withMounts(ctx gocontext.Context, id string, sn snapshots.Snapshotter, f fu
|
||||
|
||||
var usageCommand = cli.Command{
|
||||
Name: "usage",
|
||||
Usage: "usage snapshots",
|
||||
Usage: "Usage snapshots",
|
||||
ArgsUsage: "[flags] [<key>, ...]",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
@ -253,7 +253,7 @@ var removeCommand = cli.Command{
|
||||
Name: "delete",
|
||||
Aliases: []string{"del", "remove", "rm"},
|
||||
ArgsUsage: "<key> [<key>, ...]",
|
||||
Usage: "remove snapshots",
|
||||
Usage: "Remove snapshots",
|
||||
Action: func(context *cli.Context) error {
|
||||
client, ctx, cancel, err := commands.NewClient(context)
|
||||
if err != nil {
|
||||
@ -274,7 +274,7 @@ var removeCommand = cli.Command{
|
||||
|
||||
var prepareCommand = cli.Command{
|
||||
Name: "prepare",
|
||||
Usage: "prepare a snapshot from a committed snapshot",
|
||||
Usage: "Prepare a snapshot from a committed snapshot",
|
||||
ArgsUsage: "[flags] <key> [<parent>]",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
@ -325,7 +325,7 @@ var prepareCommand = cli.Command{
|
||||
|
||||
var viewCommand = cli.Command{
|
||||
Name: "view",
|
||||
Usage: "create a read-only snapshot from a committed snapshot",
|
||||
Usage: "Create a read-only snapshot from a committed snapshot",
|
||||
ArgsUsage: "[flags] <key> [<parent>]",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
@ -373,7 +373,7 @@ var viewCommand = cli.Command{
|
||||
var mountCommand = cli.Command{
|
||||
Name: "mounts",
|
||||
Aliases: []string{"m", "mount"},
|
||||
Usage: "mount gets mount commands for the snapshots",
|
||||
Usage: "Mount gets mount commands for the snapshots",
|
||||
ArgsUsage: "<target> <key>",
|
||||
Action: func(context *cli.Context) error {
|
||||
if context.NArg() != 2 {
|
||||
@ -402,7 +402,7 @@ var mountCommand = cli.Command{
|
||||
|
||||
var commitCommand = cli.Command{
|
||||
Name: "commit",
|
||||
Usage: "commit an active snapshot into the provided name",
|
||||
Usage: "Commit an active snapshot into the provided name",
|
||||
ArgsUsage: "<key> <active>",
|
||||
Action: func(context *cli.Context) error {
|
||||
if context.NArg() != 2 {
|
||||
@ -455,7 +455,7 @@ var treeCommand = cli.Command{
|
||||
|
||||
var infoCommand = cli.Command{
|
||||
Name: "info",
|
||||
Usage: "get info about a snapshot",
|
||||
Usage: "Get info about a snapshot",
|
||||
ArgsUsage: "<key>",
|
||||
Action: func(context *cli.Context) error {
|
||||
if context.NArg() != 1 {
|
||||
@ -482,7 +482,7 @@ var infoCommand = cli.Command{
|
||||
|
||||
var setLabelCommand = cli.Command{
|
||||
Name: "label",
|
||||
Usage: "add labels to content",
|
||||
Usage: "Add labels to content",
|
||||
ArgsUsage: "<name> [<label>=<value> ...]",
|
||||
Description: "labels snapshots in the snapshotter",
|
||||
Action: func(context *cli.Context) error {
|
||||
@ -531,7 +531,7 @@ var setLabelCommand = cli.Command{
|
||||
|
||||
var unpackCommand = cli.Command{
|
||||
Name: "unpack",
|
||||
Usage: "unpack applies layers from a manifest to a snapshot",
|
||||
Usage: "Unpack applies layers from a manifest to a snapshot",
|
||||
ArgsUsage: "[flags] <digest>",
|
||||
Flags: commands.SnapshotterFlags,
|
||||
Action: func(context *cli.Context) error {
|
||||
|
@ -26,7 +26,7 @@ import (
|
||||
|
||||
var attachCommand = cli.Command{
|
||||
Name: "attach",
|
||||
Usage: "attach to the IO of a running container",
|
||||
Usage: "Attach to the IO of a running container",
|
||||
ArgsUsage: "CONTAINER",
|
||||
Action: func(context *cli.Context) error {
|
||||
client, ctx, cancel, err := commands.NewClient(context)
|
||||
|
@ -30,7 +30,7 @@ import (
|
||||
|
||||
var checkpointCommand = cli.Command{
|
||||
Name: "checkpoint",
|
||||
Usage: "checkpoint a container",
|
||||
Usage: "Checkpoint a container",
|
||||
ArgsUsage: "[flags] CONTAINER",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
|
||||
var deleteCommand = cli.Command{
|
||||
Name: "delete",
|
||||
Usage: "delete one or more tasks",
|
||||
Usage: "Delete one or more tasks",
|
||||
ArgsUsage: "CONTAINER [CONTAINER, ...]",
|
||||
Aliases: []string{"del", "remove", "rm"},
|
||||
Flags: []cli.Flag{
|
||||
|
@ -33,7 +33,7 @@ import (
|
||||
|
||||
var execCommand = cli.Command{
|
||||
Name: "exec",
|
||||
Usage: "execute additional processes in an existing container",
|
||||
Usage: "Execute additional processes in an existing container",
|
||||
ArgsUsage: "[flags] CONTAINER CMD [ARG...]",
|
||||
SkipArgReorder: true,
|
||||
Flags: []cli.Flag{
|
||||
|
@ -63,7 +63,7 @@ func RemoveCniNetworkIfExist(ctx context.Context, container containerd.Container
|
||||
|
||||
var killCommand = cli.Command{
|
||||
Name: "kill",
|
||||
Usage: "signal a container (default: SIGTERM)",
|
||||
Usage: "Signal a container (default: SIGTERM)",
|
||||
ArgsUsage: "[flags] CONTAINER",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
|
||||
var listCommand = cli.Command{
|
||||
Name: "list",
|
||||
Usage: "list tasks",
|
||||
Usage: "List tasks",
|
||||
Aliases: []string{"ls"},
|
||||
ArgsUsage: "[flags]",
|
||||
Flags: []cli.Flag{
|
||||
|
@ -40,7 +40,7 @@ const (
|
||||
|
||||
var metricsCommand = cli.Command{
|
||||
Name: "metrics",
|
||||
Usage: "get a single data point of metrics for a task with the built-in Linux runtime",
|
||||
Usage: "Get a single data point of metrics for a task with the built-in Linux runtime",
|
||||
ArgsUsage: "CONTAINER",
|
||||
Aliases: []string{"metric"},
|
||||
Flags: []cli.Flag{
|
||||
|
@ -23,7 +23,7 @@ import (
|
||||
|
||||
var pauseCommand = cli.Command{
|
||||
Name: "pause",
|
||||
Usage: "pause an existing container",
|
||||
Usage: "Pause an existing container",
|
||||
ArgsUsage: "CONTAINER",
|
||||
Action: func(context *cli.Context) error {
|
||||
client, ctx, cancel, err := commands.NewClient(context)
|
||||
|
@ -29,7 +29,7 @@ import (
|
||||
|
||||
var psCommand = cli.Command{
|
||||
Name: "ps",
|
||||
Usage: "list processes for container",
|
||||
Usage: "List processes for container",
|
||||
ArgsUsage: "CONTAINER",
|
||||
Action: func(context *cli.Context) error {
|
||||
id := context.Args().First()
|
||||
|
@ -23,7 +23,7 @@ import (
|
||||
|
||||
var resumeCommand = cli.Command{
|
||||
Name: "resume",
|
||||
Usage: "resume a paused container",
|
||||
Usage: "Resume a paused container",
|
||||
ArgsUsage: "CONTAINER",
|
||||
Action: func(context *cli.Context) error {
|
||||
client, ctx, cancel, err := commands.NewClient(context)
|
||||
|
@ -29,7 +29,7 @@ import (
|
||||
|
||||
var startCommand = cli.Command{
|
||||
Name: "start",
|
||||
Usage: "start a container that has been created",
|
||||
Usage: "Start a container that has been created",
|
||||
ArgsUsage: "CONTAINER",
|
||||
Flags: append(platformStartFlags, []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
|
@ -29,7 +29,7 @@ type resizer interface {
|
||||
// Command is the cli command for managing tasks
|
||||
var Command = cli.Command{
|
||||
Name: "tasks",
|
||||
Usage: "manage tasks",
|
||||
Usage: "Manage tasks",
|
||||
Aliases: []string{"t", "task"},
|
||||
Subcommands: []cli.Command{
|
||||
attachCommand,
|
||||
|
Loading…
Reference in New Issue
Block a user