refactor: commands

This commit is contained in:
debugtalk
2022-01-08 15:10:37 +08:00
parent d3c97800f0
commit 288346bfd8
18 changed files with 45 additions and 27 deletions

15
cli/hrp/cmd/doc_test.go Normal file
View File

@@ -0,0 +1,15 @@
package cmd
import (
"testing"
"github.com/spf13/cobra/doc"
)
// run this test to generate markdown docs for hrp command
func TestGenMarkdownTree(t *testing.T) {
err := doc.GenMarkdownTree(rootCmd, "../../../docs/cmd")
if err != nil {
t.Fatal(err)
}
}