use uppercase letters for flag usage

Signed-off-by: panguicai008 <guicai.pan@daocloud.io>
This commit is contained in:
panguicai008
2023-03-08 11:23:15 +08:00
parent 29e10a192a
commit 5c9c630c33
38 changed files with 84 additions and 84 deletions

View File

@@ -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,

View File

@@ -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.