Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CallCmd = &cobra.Command{ Use: "call", Short: "Call a container", Long: callLong, Run: func(cmd *cobra.Command, args []string) { fmt.Println("hof studios container call") }, }
View Source
var CreateCmd = &cobra.Command{ Use: "create <name> [input]", Short: "Create a Studios container", 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 container create", name, input) }, }
View Source
var DeleteCmd = &cobra.Command{ Use: "delete <name or id>", Short: "Delete a Studios container.", 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 container delete", ident) }, }
View Source
var DeployCmd = &cobra.Command{ Use: "deploy <name> <input>", Short: "Deploy a Studios container", Long: deployLong, 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 container deploy", name, input) }, }
View Source
var GetCmd = &cobra.Command{ Use: "get <name or id>", Short: "Get a Studios container", 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 container get", ident) }, }
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List your containers", Long: listLong, Run: func(cmd *cobra.Command, args []string) { fmt.Println("hof studios container list") }, }
View Source
var PullCmd = &cobra.Command{ Use: "pull <name or id>", Short: "Pull a Studios container.", Long: pullLong, 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 container pull", ident) }, }
View Source
var PushCmd = &cobra.Command{ Use: "push <name or id>", Short: "Push a Studios container.", Long: pushLong, 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 container push", ident) }, }
View Source
var ResetCmd = &cobra.Command{ Use: "reset <name or id>", Short: "Reset a Studios container.", Long: resetLong, 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 container reset", ident) }, }
View Source
var ShutdownCmd = &cobra.Command{ Use: "shutdown <name or id>", Short: "Shutdown a Studios container.", Long: shutdownLong, 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 container shutdown", ident) }, }
View Source
var StatusCmd = &cobra.Command{ Use: "status <name or id>", Short: "Get the status of a Studios container.", Long: statusLong, 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 container status", ident) }, }
View Source
var UpdateCmd = &cobra.Command{ Use: "update <name> <input>", Short: "Update a Studios container", 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 container update", name, input) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.