Documentation ¶
Index ¶
- Constants
- func ConfigureFlags(c *cobra.Command, disconnectFlags *DisconnectFlags)
- func DisconnectRun(opts *DisconnectOptions) error
- func NewCmdDisconnect(f factory.Factory) *cobra.Command
- func PromptForProject(opts *DisconnectOptions, selectedTenant *tenants.Tenant) (*projects.Project, error)
- func PromptMissing(opts *DisconnectOptions) error
- type DisconnectFlags
- type DisconnectOptions
Constants ¶
View Source
const ( FlagTenant = "tenant" FlagProject = "project" )
Variables ¶
This section is empty.
Functions ¶
func ConfigureFlags ¶
func ConfigureFlags(c *cobra.Command, disconnectFlags *DisconnectFlags)
func DisconnectRun ¶
func DisconnectRun(opts *DisconnectOptions) error
func PromptForProject ¶
func PromptMissing ¶
func PromptMissing(opts *DisconnectOptions) error
Types ¶
type DisconnectFlags ¶
type DisconnectFlags struct { Tenant *flag.Flag[string] Project *flag.Flag[string] *question.ConfirmFlags }
func NewDisconnectFlags ¶
func NewDisconnectFlags() *DisconnectFlags
type DisconnectOptions ¶
type DisconnectOptions struct { *cmd.Dependencies *DisconnectFlags GetAllTenantsCallback shared.GetAllTenantsCallback GetTenantCallback shared.GetTenantCallback GetAllProjectsCallback shared.GetAllProjectsCallback GetProjectCallback shared.GetProjectCallback }
func NewDisconnectOptions ¶
func NewDisconnectOptions(disconnectFlags *DisconnectFlags, dependencies *cmd.Dependencies) *DisconnectOptions
Click to show internal directories.
Click to hide internal directories.