...
|
...
|
@@ -60,6 +60,7 @@ func (srv *Server) Help() string {
|
60
|
60
|
{"tar", "Stream the contents of a container as a tar archive"},
|
61
|
61
|
{"web", "Generate a web UI"},
|
62
|
62
|
{"images", "List images"},
|
|
63
|
+ {"inspect", "Return low-level information on a container"},
|
63
|
64
|
} {
|
64
|
65
|
help += fmt.Sprintf(" %-10.10s%s\n", cmd...)
|
65
|
66
|
}
|
...
|
...
|
@@ -282,7 +283,6 @@ func (srv *Server) CmdLs(stdin io.ReadCloser, stdout io.Writer, args ...string)
|
282
|
282
|
func (srv *Server) CmdInspect(stdin io.ReadCloser, stdout io.Writer, args ...string) error {
|
283
|
283
|
cmd := rcli.Subcmd(stdout, "inspect", "[OPTIONS] CONTAINER", "Return low-level information on a container")
|
284
|
284
|
if err := cmd.Parse(args); err != nil {
|
285
|
|
- cmd.Usage()
|
286
|
285
|
return nil
|
287
|
286
|
}
|
288
|
287
|
if cmd.NArg() < 1 {
|
...
|
...
|
@@ -463,7 +463,9 @@ func (srv *Server) CmdImages(stdin io.ReadCloser, stdout io.Writer, args ...stri
|
463
|
463
|
cmd := rcli.Subcmd(stdout, "images", "[OPTIONS] [NAME]", "List images")
|
464
|
464
|
limit := cmd.Int("l", 0, "Only show the N most recent versions of each image")
|
465
|
465
|
quiet := cmd.Bool("q", false, "only show numeric IDs")
|
466
|
|
- cmd.Parse(args)
|
|
466
|
+ if err := cmd.Parse(args); err != nil {
|
|
467
|
+ return nil
|
|
468
|
+ }
|
467
|
469
|
if cmd.NArg() > 1 {
|
468
|
470
|
cmd.Usage()
|
469
|
471
|
return nil
|
...
|
...
|
@@ -893,7 +895,7 @@ func New() (*Server, error) {
|
893
|
893
|
return nil, err
|
894
|
894
|
}
|
895
|
895
|
srv := &Server{
|
896
|
|
- images: images,
|
|
896
|
+ images: images,
|
897
|
897
|
containers: containers,
|
898
|
898
|
}
|
899
|
899
|
return srv, nil
|