Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindCmd ¶
BindCmd wraps the smctl bind command
func NewBindCmd ¶
NewBindCmd returns new bind command with context
func (*BindCmd) Prepare ¶
func (bc *BindCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*BindCmd) SetOutputFormat ¶
SetOutputFormat set output format
type GetBindingCmd ¶
GetBindingCmd wraps the smctl get-binding command
func NewGetBindingCmd ¶
func NewGetBindingCmd(context *cmd.Context) *GetBindingCmd
NewGetBindingCmd returns new get status command with context
func (*GetBindingCmd) HideUsage ¶
func (gb *GetBindingCmd) HideUsage() bool
HideUsage hide command's usage
func (*GetBindingCmd) Prepare ¶
func (gb *GetBindingCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*GetBindingCmd) SetOutputFormat ¶
func (gb *GetBindingCmd) SetOutputFormat(format output.Format)
SetOutputFormat set output format
func (*GetBindingCmd) Validate ¶
func (gb *GetBindingCmd) Validate(args []string) error
Validate validates command's arguments
type ListBindingsCmd ¶
ListBindingsCmd wraps the smctl list-bindings command
func NewListBindingsCmd ¶
func NewListBindingsCmd(context *cmd.Context) *ListBindingsCmd
NewListBindingsCmd returns new list-bindings command with context
func (*ListBindingsCmd) HideUsage ¶
func (li *ListBindingsCmd) HideUsage() bool
HideUsage hides command's usage
func (*ListBindingsCmd) Prepare ¶
func (li *ListBindingsCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*ListBindingsCmd) SetOutputFormat ¶
func (li *ListBindingsCmd) SetOutputFormat(format output.Format)
SetOutputFormat sets output format
type UnbindCmd ¶
UnbindCmd wraps the smctl bind command
func NewUnbindCmd ¶
NewUnbindCmd returns new bind command with context
func (*UnbindCmd) AskForConfirmation ¶
AskForConfirmation asks the user to confirm deletion
func (*UnbindCmd) Prepare ¶
func (ubc *UnbindCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*UnbindCmd) PrintDeclineMessage ¶
func (ubc *UnbindCmd) PrintDeclineMessage()
PrintDeclineMessage prints confirmation decline message to the user