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

@@ -35,15 +35,15 @@ var checkpointCommand = cli.Command{
Flags: []cli.Flag{
cli.BoolFlag{
Name: "exit",
Usage: "stop the container after the checkpoint",
Usage: "Stop the container after the checkpoint",
},
cli.StringFlag{
Name: "image-path",
Usage: "path to criu image files",
Usage: "Path to criu image files",
},
cli.StringFlag{
Name: "work-path",
Usage: "path to criu work files and logs",
Usage: "Path to criu work files and logs",
},
},
Action: func(context *cli.Context) error {

View File

@@ -34,11 +34,11 @@ var deleteCommand = cli.Command{
Flags: []cli.Flag{
cli.BoolFlag{
Name: "force, f",
Usage: "force delete task process",
Usage: "Force delete task process",
},
cli.StringFlag{
Name: "exec-id",
Usage: "process ID to kill",
Usage: "Process ID to kill",
},
},
Action: func(context *cli.Context) error {

View File

@@ -39,32 +39,32 @@ var execCommand = cli.Command{
Flags: []cli.Flag{
cli.StringFlag{
Name: "cwd",
Usage: "working directory of the new process",
Usage: "Working directory of the new process",
},
cli.BoolFlag{
Name: "tty,t",
Usage: "allocate a TTY for the container",
Usage: "Allocate a TTY for the container",
},
cli.BoolFlag{
Name: "detach,d",
Usage: "detach from the task after it has started execution",
Usage: "Detach from the task after it has started execution",
},
cli.StringFlag{
Name: "exec-id",
Required: true,
Usage: "exec specific id for the process",
Usage: "Exec specific id for the process",
},
cli.StringFlag{
Name: "fifo-dir",
Usage: "directory used for storing IO FIFOs",
Usage: "Directory used for storing IO FIFOs",
},
cli.StringFlag{
Name: "log-uri",
Usage: "log uri for custom shim logging",
Usage: "Log uri for custom shim logging",
},
cli.StringFlag{
Name: "user",
Usage: "user id or name",
Usage: "User id or name",
},
},
Action: func(context *cli.Context) error {

View File

@@ -69,15 +69,15 @@ var killCommand = cli.Command{
cli.StringFlag{
Name: "signal, s",
Value: "",
Usage: "signal to send to the container",
Usage: "Signal to send to the container",
},
cli.StringFlag{
Name: "exec-id",
Usage: "process ID to kill",
Usage: "Process ID to kill",
},
cli.BoolFlag{
Name: "all, a",
Usage: "send signal to all processes inside the container",
Usage: "Send signal to all processes inside the container",
},
},
Action: func(context *cli.Context) error {

View File

@@ -34,7 +34,7 @@ var listCommand = cli.Command{
Flags: []cli.Flag{
cli.BoolFlag{
Name: "quiet, q",
Usage: "print only the task id",
Usage: "Print only the task id",
},
},
Action: func(context *cli.Context) error {

View File

@@ -34,23 +34,23 @@ var startCommand = cli.Command{
Flags: append(platformStartFlags, []cli.Flag{
cli.BoolFlag{
Name: "null-io",
Usage: "send all IO to /dev/null",
Usage: "Send all IO to /dev/null",
},
cli.StringFlag{
Name: "log-uri",
Usage: "log uri",
Usage: "Log uri",
},
cli.StringFlag{
Name: "fifo-dir",
Usage: "directory used for storing IO FIFOs",
Usage: "Directory used for storing IO FIFOs",
},
cli.StringFlag{
Name: "pid-file",
Usage: "file path to write the task's pid",
Usage: "File path to write the task's pid",
},
cli.BoolFlag{
Name: "detach,d",
Usage: "detach from the task after it has started execution",
Usage: "Detach from the task after it has started execution",
},
}...),
Action: func(context *cli.Context) error {

View File

@@ -36,7 +36,7 @@ import (
var platformStartFlags = []cli.Flag{
cli.BoolFlag{
Name: "no-pivot",
Usage: "disable use of pivot-root (linux only)",
Usage: "Disable use of pivot-root (linux only)",
},
}