diff --git a/cmd/root.go b/cmd/root.go index f641a6093..8261f59c5 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -137,6 +137,7 @@ func init() { // Sui suiCmd.AddCommand(sui.WatchCmd) suiCmd.AddCommand(sui.BuildCmd) + suiCmd.AddCommand(sui.TransCmd) rootCmd.AddCommand( versionCmd, diff --git a/cmd/sui/build.go b/cmd/sui/build.go index 795e308de..4fb0fafee 100644 --- a/cmd/sui/build.go +++ b/cmd/sui/build.go @@ -24,7 +24,7 @@ var BuildCmd = &cobra.Command{ Long: L("Build the template"), Run: func(cmd *cobra.Command, args []string) { if len(args) < 2 { - fmt.Fprintln(os.Stderr, color.RedString(L("yao cui build