Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateCmd = &cobra.Command{ Use: "create <name> <input>", Short: "Create a Studios config", Long: createLong, Run: func(cmd *cobra.Command, args []string) { if 0 >= len(args) { fmt.Println("missing required argument: 'Name'") cmd.Usage() os.Exit(1) } var name string if 0 < len(args) { name = args[0] } if 1 >= len(args) { fmt.Println("missing required argument: 'Input'") cmd.Usage() os.Exit(1) } var input string if 1 < len(args) { input = args[1] } fmt.Println("hof studios config create", name, input) }, }
View Source
var DeleteCmd = &cobra.Command{ Use: "delete <name or id>", Short: "Delete a Studios config. Must not be in use", Long: deleteLong, Run: func(cmd *cobra.Command, args []string) { if 0 >= len(args) { fmt.Println("missing required argument: 'Ident'") cmd.Usage() os.Exit(1) } var ident string if 0 < len(args) { ident = args[0] } fmt.Println("hof studios config delete", ident) }, }
View Source
var GetCmd = &cobra.Command{ Use: "get <name or id>", Short: "Get a Studios config", Long: getLong, Run: func(cmd *cobra.Command, args []string) { if 0 >= len(args) { fmt.Println("missing required argument: 'Ident'") cmd.Usage() os.Exit(1) } var ident string if 0 < len(args) { ident = args[0] } fmt.Println("hof studios config get", ident) }, }
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List your configs", Long: listLong, Run: func(cmd *cobra.Command, args []string) { fmt.Println("hof studios config list") }, }
View Source
var UpdateCmd = &cobra.Command{ Use: "update <name> <input>", Short: "Update a Studios config", Long: updateLong, Run: func(cmd *cobra.Command, args []string) { if 0 >= len(args) { fmt.Println("missing required argument: 'Name'") cmd.Usage() os.Exit(1) } var name string if 0 < len(args) { name = args[0] } if 1 >= len(args) { fmt.Println("missing required argument: 'Input'") cmd.Usage() os.Exit(1) } var input string if 1 < len(args) { input = args[1] } fmt.Println("hof studios config update", name, input) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.