main.go (21 lines of code) (raw):

//go:generate goversioninfo -o=resource_windows.syso package main import ( "os" "github.com/aliyun/aliyun_assist_client/common/envutil" "github.com/aliyun/aliyun_assist_client/thirdparty/aliyun-cli/cli" "github.com/aliyun/aliyun_assist_client/thirdparty/aliyun-cli/i18n" ) func main() { cli.PlatformCompatible() i18n.SetLanguage("en") envutil.ClearExecErrDot() ctx := cli.NewCommandContext(cli.DefaultWriter()) ctx.EnterCommand(&rootCmd) ctx.SetCompletion(cli.ParseCompletionForShell()) // Add subcommands rootCmd.AddSubCommand(dataEncryptionCmd) if listContainersCmd != nil { rootCmd.AddSubCommand(listContainersCmd) } rootCmd.AddSubCommand(configureSubCmd) rootCmd.Execute(ctx, os.Args[1:]) }