Merge pull request #1012 from miaoyq/add-format-description-for-ctr-info

Add 'ArgsUsage' for ctr sub-cmds
This commit is contained in:
Phil Estes 2017-06-15 11:12:53 -04:00 committed by GitHub
commit f2963f7562
5 changed files with 15 additions and 10 deletions

View File

@ -9,8 +9,9 @@ import (
)
var checkpointCommand = cli.Command{
Name: "checkpoint",
Usage: "checkpoint a container",
Name: "checkpoint",
Usage: "checkpoint a container",
ArgsUsage: "CONTAINER",
Flags: []cli.Flag{
cli.BoolFlag{
Name: "exit",

View File

@ -10,8 +10,9 @@ import (
)
var execCommand = cli.Command{
Name: "exec",
Usage: "execute additional processes in an existing container",
Name: "exec",
Usage: "execute additional processes in an existing container",
ArgsUsage: "CONTAINER CMD [ARG...]",
Flags: []cli.Flag{
cli.StringFlag{
Name: "cwd",

View File

@ -10,8 +10,9 @@ import (
)
var infoCommand = cli.Command{
Name: "info",
Usage: "get info about a container",
Name: "info",
Usage: "get info about a container",
ArgsUsage: "CONTAINER",
Action: func(context *cli.Context) error {
var (
ctx, cancel = appContext(context)

View File

@ -6,8 +6,9 @@ import (
)
var killCommand = cli.Command{
Name: "kill",
Usage: "signal a container (default: SIGTERM)",
Name: "kill",
Usage: "signal a container (default: SIGTERM)",
ArgsUsage: "CONTAINER",
Flags: []cli.Flag{
cli.StringFlag{
Name: "signal, s",

View File

@ -10,8 +10,9 @@ import (
)
var psCommand = cli.Command{
Name: "ps",
Usage: "list processes for container",
Name: "ps",
Usage: "list processes for container",
ArgsUsage: "CONTAINER",
Action: func(context *cli.Context) error {
var (
id = context.Args().First()