export rootCmd as public
export the rootCmd to support customized commands when use yao as lib
This commit is contained in:
parent
9f7af5e4da
commit
a42c556295
1 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,9 @@ func L(words string) string {
|
||||||
return words
|
return words
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RootCmd export the rootCmd to support customized commands when use yao as lib
|
||||||
|
var RootCmd = rootCmd
|
||||||
|
|
||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
Use: share.BUILDNAME,
|
Use: share.BUILDNAME,
|
||||||
Short: "Yao App Engine",
|
Short: "Yao App Engine",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue