Documentation ¶
Index ¶
- type DeleteVisibilityCmd
- func (dv *DeleteVisibilityCmd) AskForConfirmation() (bool, error)
- func (dv *DeleteVisibilityCmd) HideUsage() bool
- func (dv *DeleteVisibilityCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
- func (dv *DeleteVisibilityCmd) PrintDeclineMessage()
- func (dv *DeleteVisibilityCmd) Run() error
- func (dv *DeleteVisibilityCmd) Validate(args []string) error
- type ListVisibilitiesCmd
- type RegisterVisibilityCmd
- func (rv *RegisterVisibilityCmd) HideUsage() bool
- func (rv *RegisterVisibilityCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
- func (rv *RegisterVisibilityCmd) Run() error
- func (rv *RegisterVisibilityCmd) SetOutputFormat(format output.Format)
- func (rv *RegisterVisibilityCmd) Validate(args []string) error
- type UpdateVisibilityCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteVisibilityCmd ¶
DeleteVisibilityCmd wraps the smctl delete-visibility command
func NewDeleteVisibilityCmd ¶
func NewDeleteVisibilityCmd(context *cmd.Context, input io.Reader) *DeleteVisibilityCmd
NewDeleteVisibilityCmd returns new delete-visibility command with context
func (*DeleteVisibilityCmd) AskForConfirmation ¶
func (dv *DeleteVisibilityCmd) AskForConfirmation() (bool, error)
AskForConfirmation asks the user to confirm deletion
func (*DeleteVisibilityCmd) HideUsage ¶
func (dv *DeleteVisibilityCmd) HideUsage() bool
HideUsage hide command's usage
func (*DeleteVisibilityCmd) Prepare ¶
func (dv *DeleteVisibilityCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*DeleteVisibilityCmd) PrintDeclineMessage ¶
func (dv *DeleteVisibilityCmd) PrintDeclineMessage()
PrintDeclineMessage prints confirmation decline message to the user
func (*DeleteVisibilityCmd) Run ¶
func (dv *DeleteVisibilityCmd) Run() error
Run runs the command's logic
func (*DeleteVisibilityCmd) Validate ¶
func (dv *DeleteVisibilityCmd) Validate(args []string) error
Validate validates command's arguments
type ListVisibilitiesCmd ¶
ListVisibilitiesCmd wraps the smctl list-visibilities command
func NewListVisibilitiesCmd ¶
func NewListVisibilitiesCmd(context *cmd.Context) *ListVisibilitiesCmd
NewListVisibilitiesCmd returns new list-visibilities command with context
func (*ListVisibilitiesCmd) HideUsage ¶
func (lv *ListVisibilitiesCmd) HideUsage() bool
HideUsage hides command's usage
func (*ListVisibilitiesCmd) Prepare ¶
func (lv *ListVisibilitiesCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*ListVisibilitiesCmd) Run ¶
func (lv *ListVisibilitiesCmd) Run() error
Run runs the command's logic
func (*ListVisibilitiesCmd) SetOutputFormat ¶
func (lv *ListVisibilitiesCmd) SetOutputFormat(format output.Format)
SetOutputFormat sets output format
type RegisterVisibilityCmd ¶
RegisterVisibilityCmd wraps the smctl register-visibility command
func NewRegisterVisibilityCmd ¶
func NewRegisterVisibilityCmd(ctx *cmd.Context) *RegisterVisibilityCmd
NewRegisterVisibilityCmd returns new smctl register-visibility command with context
func (*RegisterVisibilityCmd) HideUsage ¶
func (rv *RegisterVisibilityCmd) HideUsage() bool
HideUsage hide command's usage
func (*RegisterVisibilityCmd) Prepare ¶
func (rv *RegisterVisibilityCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*RegisterVisibilityCmd) Run ¶
func (rv *RegisterVisibilityCmd) Run() error
Run runs command's logic
func (*RegisterVisibilityCmd) SetOutputFormat ¶
func (rv *RegisterVisibilityCmd) SetOutputFormat(format output.Format)
SetOutputFormat sets command's output format
func (*RegisterVisibilityCmd) Validate ¶
func (rv *RegisterVisibilityCmd) Validate(args []string) error
Validate validates command's arguments
type UpdateVisibilityCmd ¶
UpdateVisibilityCmd wraps smctl update-visibility command
func NewUpdateVisibilityCmd ¶
func NewUpdateVisibilityCmd(context *cmd.Context) *UpdateVisibilityCmd
NewUpdateVisibilityCmd returns new smctl update-visibility command with context
func (*UpdateVisibilityCmd) HideUsage ¶
func (uv *UpdateVisibilityCmd) HideUsage() bool
HideUsage hide command's usage
func (*UpdateVisibilityCmd) Prepare ¶
func (uv *UpdateVisibilityCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*UpdateVisibilityCmd) Run ¶
func (uv *UpdateVisibilityCmd) Run() error
Run runs the command's logic
func (*UpdateVisibilityCmd) SetOutputFormat ¶
func (uv *UpdateVisibilityCmd) SetOutputFormat(format output.Format)
SetOutputFormat set output format
func (*UpdateVisibilityCmd) Validate ¶
func (uv *UpdateVisibilityCmd) Validate(args []string) error
Validate validates command's arguments