Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax in examples #4834

Merged
merged 4 commits into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/anonymous-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ EXAMPLES:
{{.Prompt}} {{.HelpName}} set public s3/public-commons/images

5. Set a custom prefix based bucket anonymous on Amazon S3 cloud storage using a JSON file.
{{.Prompt}} {{.HelpName}} set-json s3/public-commons/images /path/to/anonymous.json
{{.Prompt}} {{.HelpName}} set-json /path/to/anonymous.json s3/public-commons/images

6. Get bucket permissions.
{{.Prompt}} {{.HelpName}} get s3/shared
Expand Down Expand Up @@ -488,7 +488,7 @@ func mainAnonymous(ctx *cli.Context) error {
switch ctx.Args().First() {
case "set", "set-json", "get", "get-json":
// anonymous set [private|public|download|upload] alias/bucket/prefix
// anonymous set-json alias/bucket/prefix path-to-anonymous-json-file
// anonymous set-json path-to-anonymous-json-file alias/bucket/prefix
// anonymous get alias/bucket/prefix
// anonymous get-json alias/bucket/prefix
runAnonymousCmd(ctx.Args())
Expand Down
Loading