Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶ added in v1.11.0
func Run(f *cmdutil.Factory) (*dashboard.Application, error)
Run executes the interactive application-selection flow and returns the chosen application. Other commands (e.g. open) use it to ensure an application is selected before proceeding. A nil application is returned when the account has no applications.
Types ¶
type SelectOptions ¶
type SelectOptions struct {
IO *iostreams.IOStreams
Config config.IConfig
AppID string
AppName string
// NonInteractive disables every prompt and defaults the output to JSON, so
// the command is usable from scripts.
NonInteractive bool
PrintFlags *cmdutil.PrintFlags
NewDashboardClient func(clientID string) *dashboard.Client
}
Click to show internal directories.
Click to hide internal directories.