share/access: update command docs formatting

This commit is contained in:
Harshavardhana
2015-11-15 02:20:52 -08:00
parent 995d2b1045
commit 20a78ba84c
3 changed files with 13 additions and 14 deletions
-1
View File
@@ -44,7 +44,6 @@ DESCRIPTION:
{{.Description}}{{end}}
EXAMPLES:
1. Set bucket to "private" on Amazon S3 cloud storage.
$ mc {{.Name}} set private https://s3.amazonaws.com/burningman2011
+11 -11
View File
@@ -32,23 +32,23 @@ var shareDownload = cli.Command{
Action: mainShareDownload,
Flags: []cli.Flag{shareFlagExpire},
CustomHelpTemplate: `NAME:
mc share {{.Name}} - {{.Usage}}
mc share {{.Name}} - {{.Usage}}
USAGE:
mc share {{.Name}} [OPTIONS] TARGET
USAGE:
mc share {{.Name}} [OPTIONS] TARGET
OPTIONS:
OPTIONS:
{{range .Flags}}{{.}}
{{end}}
EXAMPLES:
1. Generate URL for sharing, with a default expiry of 7 days.
$ mc share {{.Name}} https://s3.amazonaws.com/backup/2006-Mar-1/backup.tar.gz
EXAMPLES:
1. Generate URL for sharing, with a default expiry of 7 days.
$ mc share {{.Name}} https://s3.amazonaws.com/backup/2006-Mar-1/backup.tar.gz
2. Generate URL for sharing, with an expiry of 10 minutes.
$ mc share {{.Name}} --expire=10m https://s3.amazonaws.com/backup/2006-Mar-1/backup.tar.gz
2. Generate URL for sharing, with an expiry of 10 minutes.
$ mc share {{.Name}} --expire=10m https://s3.amazonaws.com/backup/2006-Mar-1/backup.tar.gz
3. Generate list of URLs for sharing a folder recursively, with an expiry of 5 days each.
$ mc share {{.Name}} --expire=120h https://s3.amazonaws.com/backup...
3. Generate list of URLs for sharing a folder recursively, with an expiry of 5 days each.
$ mc share {{.Name}} --expire=120h https://s3.amazonaws.com/backup...
`,
}
+2 -2
View File
@@ -36,10 +36,10 @@ var shareCmd = cli.Command{
shareList,
},
CustomHelpTemplate: `NAME:
{{.Name}} - {{.Usage}}
{{.Name}} - {{.Usage}}
USAGE:
{{.Name}} command [arguments...]
{{.Name}} command [arguments...]
COMMANDS:
{{range .Subcommands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}}