#141 Update and order the help

This commit is contained in:
Guillaume J. Charmes 2013-03-22 18:15:44 -07:00
parent bd2a55cd26
commit cb3c4af404
1 changed files with 4 additions and 5 deletions

View File

@ -30,14 +30,13 @@ func (srv *Server) Name() string {
func (srv *Server) Help() string { func (srv *Server) Help() string {
help := "Usage: docker COMMAND [arg...]\n\nA self-sufficient runtime for linux containers.\n\nCommands:\n" help := "Usage: docker COMMAND [arg...]\n\nA self-sufficient runtime for linux containers.\n\nCommands:\n"
for _, cmd := range [][]interface{}{ for _, cmd := range [][]interface{}{
{"run", "Run a command in a container"},
{"ps", "Display a list of containers"},
{"import", "Create a new filesystem image from the contents of a tarball"},
{"attach", "Attach to a running container"}, {"attach", "Attach to a running container"},
{"commit", "Create a new image from a container's changes"}, {"commit", "Create a new image from a container's changes"},
{"history", "Show the history of an image"},
{"diff", "Inspect changes on a container's filesystem"}, {"diff", "Inspect changes on a container's filesystem"},
{"export", "Stream the contents of a container as a tar archive"},
{"history", "Show the history of an image"},
{"images", "List images"}, {"images", "List images"},
{"import", "Create a new filesystem image from the contents of a tarball"},
{"info", "Display system-wide information"}, {"info", "Display system-wide information"},
{"inspect", "Return low-level information on a container"}, {"inspect", "Return low-level information on a container"},
{"kill", "Kill a running container"}, {"kill", "Kill a running container"},
@ -53,7 +52,7 @@ func (srv *Server) Help() string {
{"run", "Run a command in a new container"}, {"run", "Run a command in a new container"},
{"start", "Start a stopped container"}, {"start", "Start a stopped container"},
{"stop", "Stop a running container"}, {"stop", "Stop a running container"},
{"export", "Stream the contents of a container as a tar archive"}, {"tag", "Tag an image into a repository"},
{"version", "Show the docker version information"}, {"version", "Show the docker version information"},
{"wait", "Block until a container stops, then print its exit code"}, {"wait", "Block until a container stops, then print its exit code"},
} { } {