refactor(cmd): NA

This commit is contained in:
iyear 2022-09-01 15:28:18 +08:00
parent fb06eec758
commit 28f6944ce6
3 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,7 @@
package cmd
import (
"fmt"
"github.com/fatih/color"
"github.com/iyear/tdl/cmd/login"
"github.com/iyear/tdl/cmd/version"
@ -25,8 +26,7 @@ func init() {
cmd.PersistentFlags().StringP("ns", "n", "", "namespace")
if err := doc.GenMarkdownTree(cmd, filepath.Join(consts.DocsPath, "command")); err != nil {
color.Red("generate cmd docs failed: %v", err)
return
panic(fmt.Errorf("generate cmd docs failed: %v", err))
}
}

View file

@ -12,10 +12,12 @@ tdl -h
```
-h, --help help for tdl
-n, --ns string namespace
--proxy string
```
### SEE ALSO
* [tdl login](tdl_login.md) - Login to Telegram
* [tdl version](tdl_version.md) - Check the version info

View file

@ -15,13 +15,13 @@ tdl login
### Options
```
-h, --help help for login
-n, --ns string namespace
-h, --help help for login
```
### Options inherited from parent commands
```
-n, --ns string namespace
--proxy string
```