promotedpurchases

package
v1.260504.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func PromotedPurchasesCommand() *ffcli.Command

PromotedPurchasesCommand returns the promoted purchases command with subcommands.

func PromotedPurchasesCreateCommand

func PromotedPurchasesCreateCommand() *ffcli.Command

PromotedPurchasesCreateCommand returns the promoted purchases create subcommand.

func PromotedPurchasesDeleteCommand

func PromotedPurchasesDeleteCommand() *ffcli.Command

PromotedPurchasesDeleteCommand returns the promoted purchases delete subcommand.

func PromotedPurchasesGetCommand

func PromotedPurchasesGetCommand() *ffcli.Command

PromotedPurchasesGetCommand returns the promoted purchases get subcommand.

func PromotedPurchasesLinkCommand

func PromotedPurchasesLinkCommand() *ffcli.Command

PromotedPurchasesLinkCommand returns the promoted purchases link subcommand.

func PromotedPurchasesListCommand

func PromotedPurchasesListCommand() *ffcli.Command

PromotedPurchasesListCommand returns the promoted purchases list subcommand.

func PromotedPurchasesUpdateCommand

func PromotedPurchasesUpdateCommand() *ffcli.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL