Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdDestroy ¶
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
func (*DeleteFlags) AddFlags ¶
func (flags *DeleteFlags) AddFlags(cmd *cobra.Command)
AddFlags registers flags for a cli.
func (*DeleteFlags) ToOptions ¶
func (flags *DeleteFlags) ToOptions() (*DestroyOptions, error)
ToOptions converts from CLI inputs to runtime inputs.
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.
func (*DestroyOptions) Run ¶
func (o *DestroyOptions) Run() (err error)
Run executes the `delete` command.
Click to show internal directories.
Click to hide internal directories.