From a42c556295788a94ba0ad613d0d4a39f8cc78d91 Mon Sep 17 00:00:00 2001 From: yflau <5521134@qq.com> Date: Wed, 8 May 2024 19:51:46 +0800 Subject: [PATCH] export rootCmd as public export the rootCmd to support customized commands when use yao as lib --- cmd/root.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index 40ebfd81..f641a609 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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",