export rootCmd as public

export the rootCmd to support customized commands when use yao as lib
This commit is contained in:
yflau 2024-05-08 19:51:46 +08:00 committed by GitHub
parent 9f7af5e4da
commit a42c556295
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,6 +78,9 @@ func L(words string) string {
return words
}
// RootCmd export the rootCmd to support customized commands when use yao as lib
var RootCmd = rootCmd
var rootCmd = &cobra.Command{
Use: share.BUILDNAME,
Short: "Yao App Engine",