Documentation
¶
Index ¶
- func ConfigureFixedProductTypeCreateCommand(cmd *ffcli.Command, cfg FixedProductTypeCreateConfig)
- func ConfigureScopedPromotedPurchasesCommand(cmd *ffcli.Command, cfg ScopedPromotedPurchasesCommandConfig)
- func PromotedPurchasesCommand() *ffcli.Command
- func PromotedPurchasesCreateCommand() *ffcli.Command
- func PromotedPurchasesDeleteCommand() *ffcli.Command
- func PromotedPurchasesGetCommand() *ffcli.Command
- func PromotedPurchasesLinkCommand() *ffcli.Command
- func PromotedPurchasesListCommand() *ffcli.Command
- func PromotedPurchasesUpdateCommand() *ffcli.Command
- type FixedProductTypeCreateConfig
- type ScopedPromotedPurchasesCommandConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureFixedProductTypeCreateCommand ¶
func ConfigureFixedProductTypeCreateCommand(cmd *ffcli.Command, cfg FixedProductTypeCreateConfig)
ConfigureFixedProductTypeCreateCommand rewrites the create subcommand to enforce a fixed product type.
func ConfigureScopedPromotedPurchasesCommand ¶
func ConfigureScopedPromotedPurchasesCommand(cmd *ffcli.Command, cfg ScopedPromotedPurchasesCommandConfig)
ConfigureScopedPromotedPurchasesCommand constrains a promoted-purchases command tree to one product family and updates help text accordingly.
func PromotedPurchasesCommand ¶
PromotedPurchasesCommand returns the promoted purchases command with subcommands.
func PromotedPurchasesCreateCommand ¶
PromotedPurchasesCreateCommand returns the promoted purchases create subcommand.
func PromotedPurchasesDeleteCommand ¶
PromotedPurchasesDeleteCommand returns the promoted purchases delete subcommand.
func PromotedPurchasesGetCommand ¶
PromotedPurchasesGetCommand returns the promoted purchases get subcommand.
func PromotedPurchasesLinkCommand ¶
PromotedPurchasesLinkCommand returns the promoted purchases link subcommand.
func PromotedPurchasesListCommand ¶
PromotedPurchasesListCommand returns the promoted purchases list subcommand.
func PromotedPurchasesUpdateCommand ¶
PromotedPurchasesUpdateCommand returns the promoted purchases update subcommand.
Types ¶
type FixedProductTypeCreateConfig ¶
type FixedProductTypeCreateConfig struct {
ShortUsage string
ShortHelp string
LongHelp string
ProductType promotedPurchaseProductType
ProductIDUsage string
}
FixedProductTypeCreateConfig customizes a promoted-purchases create subcommand for a specific product type.
type ScopedPromotedPurchasesCommandConfig ¶
type ScopedPromotedPurchasesCommandConfig struct {
PathPrefix string
ProductType promotedPurchaseProductType
ProductSingular string
ProductPlural string
RootShortHelp string
RootLongHelp string
}
ScopedPromotedPurchasesCommandConfig customizes a promoted-purchases command tree to a single product family while preserving the shared generic implementation.