Skip to content

Commit

Permalink
fix password flag (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyangyu authored Apr 16, 2024
1 parent e7ef0e3 commit ed7be7e
Show file tree
Hide file tree
Showing 43 changed files with 124 additions and 126 deletions.
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ ticloud is a CLI library for communicating with TiDB Cloud's API.
* [ticloud serverless](ticloud_serverless.md) - Manage TiDB Serverless clusters
* [ticloud upgrade](ticloud_upgrade.md) - Upgrade the CLI to the latest version

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ ticloud ai [flags]

* [ticloud](ticloud.md) - CLI tool to manage TiDB Cloud

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Login and logout via TiDB Cloud API
* [ticloud auth login](ticloud_auth_login.md) - Authenticate with TiDB Cloud
* [ticloud auth logout](ticloud_auth_logout.md) - Log out of TiDB Cloud

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
4 changes: 2 additions & 2 deletions docs/generate_doc/ticloud_auth_login.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ticloud auth login [flags]
### Examples

```
To start the login for your account:
To log into TiDB Cloud::
$ ticloud auth login
```

Expand All @@ -32,4 +32,4 @@ ticloud auth login [flags]

* [ticloud auth](ticloud_auth.md) - Login and logout via TiDB Cloud API

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_auth_logout.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ ticloud auth logout [flags]

* [ticloud auth](ticloud_auth.md) - Login and logout via TiDB Cloud API

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Configure and manage your user profiles
* [ticloud config set](ticloud_config_set.md) - Configure specific properties of the active profile
* [ticloud config use](ticloud_config_use.md) - Use the specified profile as the active profile

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_config_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ ticloud config create [flags]

* [ticloud config](ticloud_config.md) - Configure and manage your user profiles

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_config_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ ticloud config delete <profile-name> [flags]

* [ticloud config](ticloud_config.md) - Configure and manage your user profiles

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_config_describe.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ ticloud config describe <profile-name> [flags]

* [ticloud config](ticloud_config.md) - Configure and manage your user profiles

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_config_edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ ticloud config edit [flags]

* [ticloud config](ticloud_config.md) - Configure and manage your user profiles

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_config_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ ticloud config list [flags]

* [ticloud config](ticloud_config.md) - Configure and manage your user profiles

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_config_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ ticloud config set <property-name> <value> [flags]

* [ticloud config](ticloud_config.md) - Configure and manage your user profiles

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_config_use.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ ticloud config use <profile-name> [flags]

* [ticloud config](ticloud_config.md) - Configure and manage your user profiles

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Manage projects
* [ticloud](ticloud.md) - CLI tool to manage TiDB Cloud
* [ticloud project list](ticloud_project_list.md) - List all accessible projects

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
2 changes: 1 addition & 1 deletion docs/generate_doc/ticloud_project_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ ticloud project list [flags]

* [ticloud project](ticloud_project.md) - Manage projects

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
28 changes: 13 additions & 15 deletions docs/generate_doc/ticloud_serverless.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@ Manage TiDB Serverless clusters
### SEE ALSO

* [ticloud](ticloud.md) - CLI tool to manage TiDB Cloud
* [ticloud serverless backup](ticloud_serverless_backup.md) - Manage serverless cluster backups
* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage serverless cluster branches
* [ticloud serverless create](ticloud_serverless_create.md) - Create a serverless cluster
* [ticloud serverless delete](ticloud_serverless_delete.md) - Delete a serverless cluster
* [ticloud serverless describe](ticloud_serverless_describe.md) - Describe a serverless cluster
* [ticloud serverless export](ticloud_serverless_export.md) - Manage serverless cluster exports
* [ticloud serverless import](ticloud_serverless_import.md) - Import data into serverless cluster
* [ticloud serverless list](ticloud_serverless_list.md) - List all serverless clusters
* [ticloud serverless region](ticloud_serverless_region.md) - List all available regions for serverless clusters
* [ticloud serverless restore](ticloud_serverless_restore.md) - Restore a serverless cluster
* [ticloud serverless shell](ticloud_serverless_shell.md) - Connect to a serverless cluster
* [ticloud serverless spending-limit](ticloud_serverless_spending-limit.md) - Set spending limit for a serverless cluster
* [ticloud serverless update](ticloud_serverless_update.md) - Update a serverless cluster

###### Auto generated by spf13/cobra on 15-Apr-2024
* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage TiDB Serverless branches
* [ticloud serverless create](ticloud_serverless_create.md) - Create a TiDB Serverless cluster
* [ticloud serverless delete](ticloud_serverless_delete.md) - Delete a TiDB Serverless cluster
* [ticloud serverless describe](ticloud_serverless_describe.md) - Describe a TiDB Serverless cluster
* [ticloud serverless export](ticloud_serverless_export.md) - Manage TiDB Serverless exports
* [ticloud serverless import](ticloud_serverless_import.md) - Manage TiDB Serverless data imports
* [ticloud serverless list](ticloud_serverless_list.md) - List all TiDB Serverless clusters
* [ticloud serverless region](ticloud_serverless_region.md) - List all available regions for TiDB Serverless
* [ticloud serverless shell](ticloud_serverless_shell.md) - Connect to a TiDB Serverless cluster
* [ticloud serverless spending-limit](ticloud_serverless_spending-limit.md) - Set spending limit for a TiDB Serverless cluster
* [ticloud serverless update](ticloud_serverless_update.md) - Update a TiDB Serverless cluster

###### Auto generated by spf13/cobra on 16-Apr-2024
4 changes: 2 additions & 2 deletions docs/generate_doc/ticloud_serverless_branch.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ticloud serverless branch

Manage serverless cluster branches
Manage TiDB Serverless branches

### Options

Expand All @@ -25,4 +25,4 @@ Manage serverless cluster branches
* [ticloud serverless branch list](ticloud_serverless_branch_list.md) - List branches
* [ticloud serverless branch shell](ticloud_serverless_branch_shell.md) - Connect to a branch

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
4 changes: 2 additions & 2 deletions docs/generate_doc/ticloud_serverless_branch_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ ticloud serverless branch create [flags]

### SEE ALSO

* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage serverless cluster branches
* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage TiDB Serverless branches

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
4 changes: 2 additions & 2 deletions docs/generate_doc/ticloud_serverless_branch_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ ticloud serverless branch delete [flags]

### SEE ALSO

* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage serverless cluster branches
* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage TiDB Serverless branches

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
4 changes: 2 additions & 2 deletions docs/generate_doc/ticloud_serverless_branch_describe.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ ticloud serverless branch describe [flags]

### SEE ALSO

* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage serverless cluster branches
* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage TiDB Serverless branches

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
4 changes: 2 additions & 2 deletions docs/generate_doc/ticloud_serverless_branch_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ ticloud serverless branch list [flags]

### SEE ALSO

* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage serverless cluster branches
* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage TiDB Serverless branches

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
16 changes: 8 additions & 8 deletions docs/generate_doc/ticloud_serverless_branch_shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Connect to a branch
### Synopsis

Connect to a branch.
the connection forces the [ANSI SQL mode](https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_ansi) for the session.
The connection forces the [ANSI SQL mode](https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_ansi) for the session.

```
ticloud serverless branch shell [flags]
Expand All @@ -30,11 +30,11 @@ ticloud serverless branch shell [flags]
### Options

```
-b, --branch-id string The ID of the branch.
-c, --cluster-id string The ID of the cluster.
-h, --help help for shell
--local.password string The password of the user.
-u, --user string A specific user for login if not using the default user.
-b, --branch-id string The ID of the branch.
-c, --cluster-id string The ID of the cluster.
-h, --help help for shell
--password string The password of the user.
-u, --user string A specific user for login if not using the default user.
```

### Options inherited from parent commands
Expand All @@ -47,6 +47,6 @@ ticloud serverless branch shell [flags]

### SEE ALSO

* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage serverless cluster branches
* [ticloud serverless branch](ticloud_serverless_branch.md) - Manage TiDB Serverless branches

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
10 changes: 5 additions & 5 deletions docs/generate_doc/ticloud_serverless_create.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ticloud serverless create

Create a serverless cluster
Create a TiDB Serverless cluster

```
ticloud serverless create [flags]
Expand All @@ -9,13 +9,13 @@ ticloud serverless create [flags]
### Examples

```
Create a serverless cluster in interactive mode:
Create a TiDB Serverless cluster in interactive mode:
$ ticloud serverless create
Create a serverless cluster of the default ptoject in non-interactive mode:
Create a TiDB Serverless cluster of the default ptoject in non-interactive mode:
$ ticloud serverless create --display-name <cluster-name> --region <region>
Create a serverless cluster in non-interactive mode:
Create a TiDB Serverless cluster in non-interactive mode:
$ ticloud serverless create --project-id <project-id> --display-name <cluster-name> --region <region>
```

Expand All @@ -42,4 +42,4 @@ ticloud serverless create [flags]

* [ticloud serverless](ticloud_serverless.md) - Manage TiDB Serverless clusters

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
8 changes: 4 additions & 4 deletions docs/generate_doc/ticloud_serverless_delete.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ticloud serverless delete

Delete a serverless cluster
Delete a TiDB Serverless cluster

```
ticloud serverless delete [flags]
Expand All @@ -9,10 +9,10 @@ ticloud serverless delete [flags]
### Examples

```
Delete a serverless cluster in interactive mode:
Delete a TiDB Serverless cluster in interactive mode:
$ ticloud serverless delete
Delete a serverless cluster in non-interactive mode:
Delete a TiDB Serverless cluster in non-interactive mode:
$ ticloud serverless delete -c <cluster-id>
```

Expand All @@ -36,4 +36,4 @@ ticloud serverless delete [flags]

* [ticloud serverless](ticloud_serverless.md) - Manage TiDB Serverless clusters

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
8 changes: 4 additions & 4 deletions docs/generate_doc/ticloud_serverless_describe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ticloud serverless describe

Describe a serverless cluster
Describe a TiDB Serverless cluster

```
ticloud serverless describe [flags]
Expand All @@ -9,10 +9,10 @@ ticloud serverless describe [flags]
### Examples

```
Get a serverless cluster in interactive mode:
Get a TiDB Serverless cluster in interactive mode:
$ ticloud serverless describe
Get a serverless cluster in non-interactive mode:
Get a TiDB Serverless cluster in non-interactive mode:
$ ticloud serverless describe -c <cluster-id>
```

Expand All @@ -35,4 +35,4 @@ ticloud serverless describe [flags]

* [ticloud serverless](ticloud_serverless.md) - Manage TiDB Serverless clusters

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
14 changes: 7 additions & 7 deletions docs/generate_doc/ticloud_serverless_export.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ticloud serverless export

Manage serverless cluster exports
Manage TiDB Serverless exports

### Options

Expand All @@ -19,10 +19,10 @@ Manage serverless cluster exports
### SEE ALSO

* [ticloud serverless](ticloud_serverless.md) - Manage TiDB Serverless clusters
* [ticloud serverless export cancel](ticloud_serverless_export_cancel.md) - Cancel a serverless cluster export
* [ticloud serverless export create](ticloud_serverless_export_create.md) - Create a serverless cluster export
* [ticloud serverless export describe](ticloud_serverless_export_describe.md) - Describe a serverless cluster export
* [ticloud serverless export download](ticloud_serverless_export_download.md) - Download the local type export
* [ticloud serverless export list](ticloud_serverless_export_list.md) - List serverless cluster exports
* [ticloud serverless export cancel](ticloud_serverless_export_cancel.md) - Cancel an export task
* [ticloud serverless export create](ticloud_serverless_export_create.md) - Export data from a TiDB Serverless cluster
* [ticloud serverless export describe](ticloud_serverless_export_describe.md) - Describe an export task
* [ticloud serverless export download](ticloud_serverless_export_download.md) - Download the exported data
* [ticloud serverless export list](ticloud_serverless_export_list.md) - List export tasks

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
6 changes: 3 additions & 3 deletions docs/generate_doc/ticloud_serverless_export_cancel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ticloud serverless export cancel

Cancel a serverless cluster export
Cancel an export task

```
ticloud serverless export cancel [flags]
Expand Down Expand Up @@ -35,6 +35,6 @@ ticloud serverless export cancel [flags]

### SEE ALSO

* [ticloud serverless export](ticloud_serverless_export.md) - Manage serverless cluster exports
* [ticloud serverless export](ticloud_serverless_export.md) - Manage TiDB Serverless exports

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
6 changes: 3 additions & 3 deletions docs/generate_doc/ticloud_serverless_export_create.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ticloud serverless export create

Create a serverless cluster export
Export data from a TiDB Serverless cluster

```
ticloud serverless export create [flags]
Expand Down Expand Up @@ -44,6 +44,6 @@ ticloud serverless export create [flags]

### SEE ALSO

* [ticloud serverless export](ticloud_serverless_export.md) - Manage serverless cluster exports
* [ticloud serverless export](ticloud_serverless_export.md) - Manage TiDB Serverless exports

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
6 changes: 3 additions & 3 deletions docs/generate_doc/ticloud_serverless_export_describe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ticloud serverless export describe

Describe a serverless cluster export
Describe an export task

```
ticloud serverless export describe [flags]
Expand Down Expand Up @@ -34,6 +34,6 @@ ticloud serverless export describe [flags]

### SEE ALSO

* [ticloud serverless export](ticloud_serverless_export.md) - Manage serverless cluster exports
* [ticloud serverless export](ticloud_serverless_export.md) - Manage TiDB Serverless exports

###### Auto generated by spf13/cobra on 15-Apr-2024
###### Auto generated by spf13/cobra on 16-Apr-2024
Loading

0 comments on commit ed7be7e

Please sign in to comment.