mirror of
https://github.com/bit1001/tdl.git
synced 2024-12-26 22:54:20 +08:00
refactor(cmd): NA
This commit is contained in:
parent
fb06eec758
commit
28f6944ce6
3 changed files with 6 additions and 4 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue