mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
24 lines
453 B
Go
24 lines
453 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/httprunner/httprunner/v4/hrp/internal/wiki"
|
|
)
|
|
|
|
var wikiCmd = &cobra.Command{
|
|
Use: "wiki",
|
|
Aliases: []string{"info", "docs", "doc"},
|
|
Short: "visit https://httprunner.com",
|
|
PreRun: func(cmd *cobra.Command, args []string) {
|
|
setLogLevel(logLevel)
|
|
},
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return wiki.OpenWiki()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(wikiCmd)
|
|
}
|