Skip to content

Commit 684be2c

Browse files
hcsa73Henrique Santos
andauthored
Misc fixes to database commands (#92)
* Add hint to flex services on instance update * Add hint on password reset * Make state capitalized * Fix credentials describe example descriptions * Make state capitalized for describe --------- Co-authored-by: Henrique Santos <[email protected]>
1 parent 9dd2f7f commit 684be2c

File tree

18 files changed

+41
-28
lines changed

18 files changed

+41
-28
lines changed

docs/stackit_logme_credentials_describe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ stackit logme credentials describe CREDENTIALS_ID [flags]
1313
### Examples
1414

1515
```
16-
Get details of credentials of a LogMe instance with ID "xxx" from instance with ID "yyy"
16+
Get details of credentials with ID "xxx" from instance with ID "yyy"
1717
$ stackit logme credentials describe xxx --instance-id yyy
1818
19-
Get details of credentials of a LogMe instance with ID "xxx" from instance with ID "yyy" in a table format
19+
Get details of credentials with ID "xxx" from instance with ID "yyy" in a table format
2020
$ stackit logme credentials describe xxx --instance-id yyy --output-format pretty
2121
```
2222

docs/stackit_mariadb_credentials_describe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ stackit mariadb credentials describe CREDENTIALS_ID [flags]
1313
### Examples
1414

1515
```
16-
Get details of credentials of a MariaDB instance with ID "xxx" from instance with ID "yyy"
16+
Get details of credentials with ID "xxx" from instance with ID "yyy"
1717
$ stackit mariadb credentials describe xxx --instance-id yyy
1818
19-
Get details of credentials of a MariaDB instance with ID "xxx" from instance with ID "yyy" in a table format
19+
Get details of credentials with ID "xxx" from instance with ID "yyy" in a table format
2020
$ stackit mariadb credentials describe xxx --instance-id yyy --output-format pretty
2121
```
2222

docs/stackit_mongodbflex_user_reset-password.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Resets the password of a MongoDB Flex user
44

55
### Synopsis
66

7-
Resets the password of a MongoDB Flex user. The new password is shown in the command's output.
7+
Resets the password of a MongoDB Flex user.
8+
sThe new password is visible after and cannot be retrieved later.
89

910
```
1011
stackit mongodbflex user reset-password USER_ID [flags]

docs/stackit_opensearch_credentials_describe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ stackit opensearch credentials describe CREDENTIALS_ID [flags]
1313
### Examples
1414

1515
```
16-
Get details of credentials of an OpenSearch instance with ID "xxx" from instance with ID "yyy"
16+
Get details of credentials with ID "xxx" from instance with ID "yyy"
1717
$ stackit opensearch credentials describe xxx --instance-id yyy
1818
19-
Get details of credentials of an OpenSearch instance with ID "xxx" from instance with ID "yyy" in a table format
19+
Get details of credentials with ID "xxx" from instance with ID "yyy" in a table format
2020
$ stackit opensearch credentials describe xxx --instance-id yyy --output-format pretty
2121
```
2222

docs/stackit_postgresflex_user_reset-password.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Resets the password of a PostgreSQL Flex user
44

55
### Synopsis
66

7-
Resets the password of a PostgreSQL Flex user. The new password is returned in the response.
7+
Resets the password of a PostgreSQL Flex user.
8+
sThe new password is visible after and cannot be retrieved later.
89

910
```
1011
stackit postgresflex user reset-password USER_ID [flags]

docs/stackit_rabbitmq_credentials_describe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ stackit rabbitmq credentials describe CREDENTIALS_ID [flags]
1313
### Examples
1414

1515
```
16-
Get details of credentials of an RabbitMQ instance with ID "xxx" from instance with ID "yyy"
16+
Get details of credentials with ID "xxx" from instance with ID "yyy"
1717
$ stackit rabbitmq credentials describe xxx --instance-id yyy
1818
19-
Get details of credentials of an RabbitMQ instance with ID "xxx" from instance with ID "yyy" in a table format
19+
Get details of credentials with ID "xxx" from instance with ID "yyy" in a table format
2020
$ stackit rabbitmq credentials describe xxx --instance-id yyy --output-format pretty
2121
```
2222

docs/stackit_redis_credentials_describe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ stackit redis credentials describe CREDENTIALS_ID [flags]
1313
### Examples
1414

1515
```
16-
Get details of credentials of a Redis instance with ID "xxx" from instance with ID "yyy"
16+
Get details of credentials with ID "xxx" from instance with ID "yyy"
1717
$ stackit redis credentials describe xxx --instance-id yyy
1818
19-
Get details of credentials of a Redis instance with ID "xxx" from instance with ID "yyy" in a table format
19+
Get details of credentials with ID "xxx" from instance with ID "yyy" in a table format
2020
$ stackit redis credentials describe xxx --instance-id yyy --output-format pretty
2121
```
2222

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ require (
2222
github.com/zalando/go-keyring v0.2.3
2323
golang.org/x/mod v0.15.0
2424
golang.org/x/oauth2 v0.17.0
25+
golang.org/x/text v0.14.0
2526
)
2627

2728
require (
@@ -56,7 +57,6 @@ require (
5657
go.uber.org/multierr v1.11.0 // indirect
5758
golang.org/x/exp v0.0.0-20240119083558-1b970713d09a // indirect
5859
golang.org/x/sys v0.16.0 // indirect
59-
golang.org/x/text v0.14.0 // indirect
6060
google.golang.org/appengine v1.6.8 // indirect
6161
google.golang.org/protobuf v1.32.0 // indirect
6262
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect

internal/cmd/logme/credentials/describe/describe.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ func NewCmd() *cobra.Command {
3838
Args: args.SingleArg(credentialsIdArg, utils.ValidateUUID),
3939
Example: examples.Build(
4040
examples.NewExample(
41-
`Get details of credentials of a LogMe instance with ID "xxx" from instance with ID "yyy"`,
41+
`Get details of credentials with ID "xxx" from instance with ID "yyy"`,
4242
"$ stackit logme credentials describe xxx --instance-id yyy"),
4343
examples.NewExample(
44-
`Get details of credentials of a LogMe instance with ID "xxx" from instance with ID "yyy" in a table format`,
44+
`Get details of credentials with ID "xxx" from instance with ID "yyy" in a table format`,
4545
"$ stackit logme credentials describe xxx --instance-id yyy --output-format pretty"),
4646
),
4747
RunE: func(cmd *cobra.Command, args []string) error {

internal/cmd/mariadb/credentials/describe/describe.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ func NewCmd() *cobra.Command {
3838
Args: args.SingleArg(credentialsIdArg, utils.ValidateUUID),
3939
Example: examples.Build(
4040
examples.NewExample(
41-
`Get details of credentials of a MariaDB instance with ID "xxx" from instance with ID "yyy"`,
41+
`Get details of credentials with ID "xxx" from instance with ID "yyy"`,
4242
"$ stackit mariadb credentials describe xxx --instance-id yyy"),
4343
examples.NewExample(
44-
`Get details of credentials of a MariaDB instance with ID "xxx" from instance with ID "yyy" in a table format`,
44+
`Get details of credentials with ID "xxx" from instance with ID "yyy" in a table format`,
4545
"$ stackit mariadb credentials describe xxx --instance-id yyy --output-format pretty"),
4646
),
4747
RunE: func(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)