Skip to content

Commit

Permalink
添加说明
Browse files Browse the repository at this point in the history
  • Loading branch information
aoliaoaoaojiao committed Jun 5, 2024
1 parent e4f08d4 commit 8b3efc9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ fionna --help
fionna web
```

当然,在web模式下,也可以指定使用的SQLite DB文件:

```
fionna web -d <db path>
# 参考示例:fionna fionna web -d ./exapmle/my.db
```

#### cli-perf模式

由于web的依赖性太强,所以提供一个简单的性能输出模式,输入以下命令,即可在命令行中得到对应的性能数据:
Expand Down
7 changes: 7 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ Execute the following command directly in the command line, and the program will
fionna web
```

Of course, in web mode, you can also specify the SQLite DB file to use.

```
fionna web -d <db path>
# Example:fionna fionna web -d ./exapmle/my.db
```

#### cli-perf mode

Due to the strong dependency of web, a simple performance output mode is provided. Input the following command and you can get the corresponding performance data in the command line:
Expand Down
2 changes: 1 addition & 1 deletion cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ var webCmd = &cobra.Command{

func init() {
rootCmd.AddCommand(webCmd)
webCmd.Flags().StringVarP(&dbName, "db-name", "d", "test.db", "specify the sql lite name to use")
webCmd.Flags().StringVarP(&dbName, "db-path", "d", "test.db", "specify the SQLite path to use")
}

0 comments on commit 8b3efc9

Please sign in to comment.