Merge pull request #426 from fkautz/pr_out_renaming_docmdlist_to_runcmdlist
This commit is contained in:
@@ -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
@@ -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}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user