// Register registers run command for gola binary.
Register registers run command for gola binary.
// Register registers run command for gola binary .
func Register(root *cobra.Command) {
	cmd := &cobra.Command{
		Use:   "run",
		Short: "Run specific gola command",
		Run: func(_ *cobra.Command, args []string) {
			if len(args) == 0 {
				log.Fatal("Not enough arguments.")
			}
			if len(args) > 1 {
				log.Fatal("Too many arguments.")
			}
			main(args[0])
		},
	}
	cmd.SetUsageTemplate(
		`Usage:
  gola run [command]
Example:
  gola run echo
Flags:
  -h, --help   help for run
`,
	)
	root.AddCommand(cmd)
}
func Register ( root * cobra . Command ) { cmd := & cobra . Command { Use : " " , Short : " " , Run : func ( _ * cobra . Command , args [ ] string ) { if len ( args ) == 0 { log . Fatal ( " " ) } if len ( args ) > 1 { log . Fatal ( " " ) } main ( args [ 0 ] ) } , } cmd . SetUsageTemplate ( `Usage:
  gola run [command]

Example:
  gola run echo

Flags:
  -h, --help   help for run
` , ) root . AddCommand ( cmd ) }
Register registers run command for gola binary.
Register registers run command for gola binary .