Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdDestroy ¶
func NewCmdDestroy(ui *terminal.UI, ioStreams genericiooptions.IOStreams) *cobra.Command
NewCmdDestroy creates the `delete` command.
Types ¶
type DeleteFlags ¶
type DeleteFlags struct {
MetaFlags *meta.MetaFlags
Operator string
Yes bool
Detail bool
NoStyle bool
UI *terminal.UI
genericiooptions.IOStreams
}
DeleteFlags directly reflect the information that CLI is gathering via flags. They will be converted to DestroyOptions, which reflect the runtime requirements for the command.
This structure reduces the transformation to wiring and makes the logic itself easy to unit test.
func NewDeleteFlags ¶
func NewDeleteFlags(ui *terminal.UI, streams genericiooptions.IOStreams) *DeleteFlags
NewDeleteFlags returns a default DeleteFlags
type DestroyOptions ¶
type DestroyOptions struct {
*meta.MetaOptions
Yes bool
Detail bool
NoStyle bool
UI *terminal.UI
genericiooptions.IOStreams
}
DestroyOptions defines flags and other configuration parameters for the `delete` command.
Click to show internal directories.
Click to hide internal directories.