From 425b46abab21fac6e218a37b3f01f77292f18771 Mon Sep 17 00:00:00 2001 From: "Anand Babu (AB) Periasamy" Date: Fri, 5 Jun 2015 16:43:27 -0700 Subject: [PATCH] rename to registerCmd --- cmd-options.go | 4 ++-- main.go | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cmd-options.go b/cmd-options.go index 3f26148b..4fca3562 100644 --- a/cmd-options.go +++ b/cmd-options.go @@ -69,8 +69,8 @@ var ( // Add your new flags starting here ) -// registerCommand registers a cli command -func registerCommand(cmd cli.Command) { +// registerCmd registers a cli command +func registerCmd(cmd cli.Command) { commands = append(commands, cmd) } diff --git a/main.go b/main.go index d57ab04a..7d0453ae 100644 --- a/main.go +++ b/main.go @@ -99,15 +99,15 @@ var Version = mustHashBinarySelf() func main() { // register all the commands - registerCommand(lsCmd) // List contents of a bucket - registerCommand(mbCmd) // make a bucket - registerCommand(catCmd) // concantenate an object to standard output - registerCommand(cpCmd) // copy objects and files from multiple sources to single destination - registerCommand(syncCmd) // copy objects and files from single source to multiple destionations - registerCommand(diffCmd) // compare two objects - registerCommand(accessCmd) // set permissions [public, private, readonly, authenticated] for buckets and folders. - registerCommand(configCmd) // generate configuration "/home/harsha/.mc/config.json" file. - registerCommand(updateCmd) // update Check for new software updates + registerCmd(lsCmd) // List contents of a bucket + registerCmd(mbCmd) // make a bucket + registerCmd(catCmd) // concantenate an object to standard output + registerCmd(cpCmd) // copy objects and files from multiple sources to single destination + registerCmd(syncCmd) // copy objects and files from single source to multiple destionations + registerCmd(diffCmd) // compare two objects + registerCmd(accessCmd) // set permissions [public, private, readonly, authenticated] for buckets and folders. + registerCmd(configCmd) // generate configuration "/home/harsha/.mc/config.json" file. + registerCmd(updateCmd) // update Check for new software updates // register all the flags registerFlag(quietFlag) // suppress console output