Merge pull request #426 from fkautz/pr_out_renaming_docmdlist_to_runcmdlist

This commit is contained in:
Frederick F. Kautz IV
2015-04-18 16:09:59 -07:00
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -86,7 +86,10 @@ func doListObjects(clnt client.Client, bucket, object, urlStr string) {
printObjects(items)
}
// doListCmd lists objects inside a bucket
// runListCmd lists objects inside a bucket
func runListCmd(ctx *cli.Context) {
doListCmd(ctx)
}
func doListCmd(ctx *cli.Context) {
if len(ctx.Args()) < 1 {
cli.ShowCommandHelpAndExit(ctx, "ls", 1) // last argument is exit code
+1 -1
View File
@@ -69,7 +69,7 @@ EXAMPLES:
Name: "ls",
Usage: "List files and objects",
// Description: `List files and objects recursively on object storage and fileystems`,
Action: doListCmd,
Action: runListCmd,
CustomHelpTemplate: `NAME:
mc {{.Name}} - {{.Usage}}