keep the uppercase letter for flag info

Signed-off-by: yulng <wei.yang@daocloud.io>
This commit is contained in:
yulng
2023-01-19 17:40:45 +08:00
parent 94934e1a47
commit 757b8f702b
43 changed files with 217 additions and 217 deletions

View File

@@ -42,7 +42,7 @@ var (
// Command is the cli command for managing content
Command = cli.Command{
Name: "content",
Usage: "manage content",
Usage: "Manage content",
Subcommands: cli.Commands{
activeIngestCommand,
deleteCommand,
@@ -96,11 +96,11 @@ var (
Flags: []cli.Flag{
cli.Int64Flag{
Name: "expected-size",
Usage: "validate against provided size",
Usage: "Validate against provided size",
},
cli.StringFlag{
Name: "expected-digest",
Usage: "verify content against expected digest",
Usage: "Verify content against expected digest",
},
},
Action: func(context *cli.Context) error {
@@ -143,7 +143,7 @@ var (
},
cli.StringFlag{
Name: "root",
Usage: "path to content store root",
Usage: "Path to content store root",
Value: "/tmp/content", // TODO(stevvooe): for now, just use the PWD/.content
},
},
@@ -181,7 +181,7 @@ var (
Flags: []cli.Flag{
cli.BoolFlag{
Name: "quiet, q",
Usage: "print only the blob digest",
Usage: "Print only the blob digest",
},
},
Action: func(context *cli.Context) error {
@@ -294,7 +294,7 @@ var (
Flags: []cli.Flag{
cli.StringFlag{
Name: "validate",
Usage: "validate the result against a format (json, mediatype, etc.)",
Usage: "Validate the result against a format (json, mediatype, etc.)",
},
cli.StringFlag{
Name: "editor",

View File

@@ -37,17 +37,17 @@ const (
var pruneFlags = []cli.Flag{
cli.BoolFlag{
Name: "async",
Usage: "allow garbage collection to cleanup asynchronously",
Usage: "Allow garbage collection to cleanup asynchronously",
},
cli.BoolFlag{
Name: "dry",
Usage: "just show updates without applying (enables debug logging)",
Usage: "Just show updates without applying (enables debug logging)",
},
}
var pruneCommand = cli.Command{
Name: "prune",
Usage: "prunes content from the content store",
Usage: "Prunes content from the content store",
Subcommands: cli.Commands{
pruneReferencesCommand,
},
@@ -55,7 +55,7 @@ var pruneCommand = cli.Command{
var pruneReferencesCommand = cli.Command{
Name: "references",
Usage: "prunes preference labels from the content store (layers only by default)",
Usage: "Prunes preference labels from the content store (layers only by default)",
Flags: pruneFlags,
Action: func(clicontext *cli.Context) error {
client, ctx, cancel, err := commands.NewClient(clicontext)