fix: alignment issues in help for svacct sub-commands (#4676)

This commit is contained in:
Harshavardhana
2023-09-07 15:48:55 -07:00
committed by GitHub
parent e088bd45a9
commit 9dcef8825f
3 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.0
go-version: 1.21.1
check-latest: true
- name: Get official govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
+7 -7
View File
@@ -79,7 +79,7 @@ var adminUserSvcAcctAddCmd = cli.Command{
{{.HelpName}} - {{.Usage}}
USAGE:
{{.HelpName}} ALIAS ACCOUNT
{{.HelpName}} ALIAS ACCOUNT [FLAGS]
ACCOUNT:
An account could be a regular MinIO user, STS or LDAP user.
@@ -90,18 +90,18 @@ FLAGS:
EXAMPLES:
1. Add a new service account for user 'foobar' to MinIO server with a name and description.
{{.Prompt}} {{.HelpName}} myminio foobar --name uploaderKey --description "foobar uploader scripts"
2. Add a new service account to MinIO server with specified access key and secret key for user 'foobar'.
{{.Prompt}} {{.HelpName}} myminio foobar --access-key "myaccesskey" --secret-key "mysecretkey"
3. Add a new service account to MinIO server with specified access key and random secret key for user 'foobar'.
{{.Prompt}} {{.HelpName}} myminio foobar --access-key "myaccesskey"
4. Add a new service account to MinIO server with specified secret key and random access key for user 'foobar'.
{{.Prompt}} {{.HelpName}} myminio foobar --secret-key "mysecretkey"
5. Add a new service account to MinIO server with specified expiry date in the future for user 'foobar'.
{{.Prompt}} {{.HelpName}} myminio foobar --expiry 2023-06-24
{{.Prompt}} {{.HelpName}} myminio foobar --expiry 2023-06-24T10:00
{{.Prompt}} {{.HelpName}} myminio foobar --expiry 2023-06-24T10:00:00
{{.Prompt}} {{.HelpName}} myminio foobar --expiry 2023-06-24T10:00:00Z
{{.Prompt}} {{.HelpName}} myminio foobar --expiry 2023-06-24T10:00:00-07:00
5. Add a new service account to MinIO server with specified expiry date in the future for user 'foobar'.
{{.Prompt}} {{.HelpName}} myminio foobar --expiry 2023-06-24T10:00:00-07:00
`,
}
+2 -5
View File
@@ -72,11 +72,8 @@ FLAGS:
EXAMPLES:
1. Change the secret key of the service account 'J123C4ZXEQN8RK6ND35I' in MinIO server.
{{.Prompt}} {{.HelpName}} myminio/ 'J123C4ZXEQN8RK6ND35I' --secret-key 'xxxxxxx'
2. Change the expiry of the service account 'J123C4ZXEQN8RK6ND35I' in MinIO server.
{{.Prompt}} {{.HelpName}} myminio/ 'J123C4ZXEQN8RK6ND35I' --expiry 2023-06-24
{{.Prompt}} {{.HelpName}} myminio/ 'J123C4ZXEQN8RK6ND35I' --expiry 2023-06-24T10:00
{{.Prompt}} {{.HelpName}} myminio/ 'J123C4ZXEQN8RK6ND35I' --expiry 2023-06-24T10:00:00
{{.Prompt}} {{.HelpName}} myminio/ 'J123C4ZXEQN8RK6ND35I' --expiry 2023-06-24T10:00:00Z
2. Change the expiry of the service account 'J123C4ZXEQN8RK6ND35I' in MinIO server.
{{.Prompt}} {{.HelpName}} myminio/ 'J123C4ZXEQN8RK6ND35I' --expiry 2023-06-24T10:00:00-07:00
`,
}