set

package
v0.0.0-...-fb69fc5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SetCmd = &cobra.Command{
	Use:   "set",
	Short: "Set your default organization and project",
	ValidArgs: []string{
		organizationSetCmd.Use,
		projectSetCmd.Use,
	},
	ArgAliases: append(
		organizationSetCmd.Aliases,
		projectSetCmd.Aliases...,
	),
	Args: cobra.ExactValidArgs(1),
	PersistentPreRun: func(cmd *cobra.Command, args []string) {

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

SetCmd is the base command for all resource set commands set is the same as 'select prompt' but without the prompt list.

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