From 1f6273ec0410ce74c97a958f5c6c739ac63a4c11 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Sat, 18 Apr 2015 16:08:11 -0700 Subject: [PATCH] Renaming doCmdList to runCmdList --- cmd-ls.go | 5 ++++- cmd-options.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd-ls.go b/cmd-ls.go index 431d335b..cfa08cd9 100644 --- a/cmd-ls.go +++ b/cmd-ls.go @@ -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 diff --git a/cmd-options.go b/cmd-options.go index 751973ea..5846263f 100644 --- a/cmd-options.go +++ b/cmd-options.go @@ -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}}