Skip to content

Commit

Permalink
chore: rename mongo-cli => mongo-helper
Browse files Browse the repository at this point in the history
  • Loading branch information
here-Leslie-Lau committed Dec 8, 2023
1 parent 662af6c commit 1b2a04c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ var path string

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "mongo-cli init|create|query [flags]",
Use: "mongo-helper init|create|query [flags]",
Short: "a tool for operating MongoDB databases or collections",
Long: `"mongo-cli" is a tool for operating MongoDB databases or collections,
Long: `"mongo-helper" is a tool for operating MongoDB databases or collections,
capable of simplifying related operations.
For more information, you can use "mongo-cli help" to query.
For more information about subcommands, you can use "mongo-cli [command] --help"`,
For more information, you can use "mongo-helper help" to query.
For more information about subcommands, you can use "mongo-helper [command] --help"`,
}

func init() {
Expand Down
6 changes: 3 additions & 3 deletions docs/design_cmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 前言

打算编写一个名为`mongo-cli`或者名为`mongoplus-plus`的工具。
打算编写一个名为`mongo-helper`或者名为`mongoplus-plus`的工具。

特性:

Expand All @@ -26,7 +26,7 @@
### 大命令

```shell
mongo-cli help
mongo-help help

create 创建数据库、集合、索引等
query 查询结果集, 条件方面的拼装目前还需要想想如何设计
Expand All @@ -50,7 +50,7 @@ flags:

- database

command: `mongo-cli create database [database name]`
command: `mongo-helper create database [database name]`

- collection

Expand Down

0 comments on commit 1b2a04c

Please sign in to comment.