Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ListCmd = &cobra.Command{ Use: "list", Aliases: []string{"ls"}, Short: "List a list of jobs", Long: `List a list of jobs. For example: mim jobs --list or mim jobs -l .`, Run: func(cmd *cobra.Command, args []string) { format := utils.ResolveFormat(cmd) if format != "term" { pterm.DisableOutput() } server, token, err := login.ResolveCredentials() utils.HandleError(err) pterm.EnableDebugMessages() pterm.DefaultSection.Println("Listing server namespaces on " + server) namespaces, err := web.GetRequest(server, token, "/namespaces") utils.HandleError(err) output(namespaces, format) pterm.Println() }, TraverseChildren: true, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.