Documentation
¶
Index ¶
- func NewActiveUpdateCommand(config ActiveUpdateCommandConfig) *ffcli.Command
- func NewOfferCodeCustomCodesCommand(d *shared.Deps) *ffcli.Command
- func NewOfferCodesGenerateCommand(d *shared.Deps) *ffcli.Command
- func NewOfferCodesValuesCommand(d *shared.Deps) *ffcli.Command
- type ActiveUpdateCommandConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewActiveUpdateCommand ¶
func NewActiveUpdateCommand(config ActiveUpdateCommandConfig) *ffcli.Command
NewActiveUpdateCommand builds a command that updates a resource's active attribute.
func NewOfferCodeCustomCodesCommand ¶
NewOfferCodeCustomCodesCommand returns the custom codes command group built on d.
func NewOfferCodesGenerateCommand ¶
NewOfferCodesGenerateCommand returns the offer codes generate subcommand built on d.
Types ¶
type ActiveUpdateCommandConfig ¶
type ActiveUpdateCommandConfig struct {
FlagSetName string
Name string
ShortUsage string
ShortHelp string
LongHelp string
IDFlag string
IDUsage string
IDType string
ErrorPrefix string
// ConfirmOff names what --active false turns off permanently; when set,
// --active false requires --confirm.
ConfirmOff string
Update func(context.Context, *asc.Client, string, *bool) (any, error)
// Deps is what the command is built on. It defaults to shared.DefaultDeps().
Deps *shared.Deps
}
ActiveUpdateCommandConfig describes a command that sets a resource's active attribute.