feat: gen markdown docs for command

This commit is contained in:
debugtalk
2021-10-11 15:33:15 +08:00
parent beaf5adaef
commit 09fdaa8c35
11 changed files with 147 additions and 21 deletions

View File

@@ -9,8 +9,8 @@ import (
"github.com/httprunner/httpboomer"
)
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
// RootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{
Use: "httpboomer",
Short: "One-stop solution for HTTP(S) testing.",
Long: `HttpBoomer is the next generation for HttpRunner. Enjoy! ✨ 🚀 ✨
@@ -24,7 +24,7 @@ Copyright 2021 debugtalk`,
// Execute adds all child commands to the root command and sets flags appropriately.
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
if err := rootCmd.Execute(); err != nil {
if err := RootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}