Update cli package

The old one has bug when showing help message for IntFlags.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang
2016-05-10 13:58:09 +08:00
parent be46e644f6
commit 8477638aab
32 changed files with 2259 additions and 306 deletions
+5 -4
View File
@@ -61,10 +61,10 @@ For example, if the container id is "ubuntu01" the following will send a "KILL"
signal to the init process of the "ubuntu01" container:
# runc kill ubuntu01 KILL`,
Action: func(context *cli.Context) {
Action: func(context *cli.Context) error {
container, err := getContainer(context)
if err != nil {
fatal(err)
return err
}
sigstr := context.Args().Get(1)
@@ -74,12 +74,13 @@ signal to the init process of the "ubuntu01" container:
signal, err := parseSignal(sigstr)
if err != nil {
fatal(err)
return err
}
if err := container.Signal(signal); err != nil {
fatal(err)
return err
}
return nil
},
}