selectprompt

package
v0.0.0-...-c0ffb5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SelectCmd = &cobra.Command{
	Use:   "select",
	Short: "Open a select prompt to set your default organization and project",
	ValidArgs: []string{
		organizationSelectCmd.Use,
		projectSelectCmd.Use,
	},
	ArgAliases: append(
		organizationSelectCmd.Aliases,
		projectSelectCmd.Aliases...,
	),
	Args: cobra.ExactValidArgs(1),
	PersistentPreRun: func(cmd *cobra.Command, args []string) {

		cli.HandleErrorAndExit(func() error {
			if !auth.IsLoggedIn() {
				return &cli.NotLoggedInError{}
			}
			return nil
		}())
	},
}

SelectCmd is the base command for all resource select prompt commands

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL