Skip to content

Commit

Permalink
feat: update namings
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietro Marchini committed Jan 30, 2024
1 parent 2f9a673 commit 904e0ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions internal/clioptions/clioptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ type CLIOptions struct {
// MarketplaceItemVersion is the version field of a Marketplace item
MarketplaceItemVersion string
// MarketplaceItemObjectID is the _id of a Marketplace item
MarketplaceItemObjectID string
// Fetch only public items
Public bool
MarketplaceItemObjectID string
MarketplaceFetchPublicItems bool

FromCronJob string

Expand Down Expand Up @@ -217,7 +216,7 @@ func (o *CLIOptions) AddMarketplaceItemIDFlag(flags *pflag.FlagSet) (flagName st

func (o *CLIOptions) AddPublicFlag(flags *pflag.FlagSet) (flagName string) {
flagName = "public"
flags.BoolVarP(&o.Public, flagName, "p", false, "specify to fetch also public items")
flags.BoolVarP(&o.MarketplaceFetchPublicItems, flagName, "p", false, "specify to fetch also public items")
return
}

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/marketplace/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func runListCmd(options *clioptions.CLIOptions) func(cmd *cobra.Command, args []

marketplaceItemsOptions := GetMarketplaceItemsOptions{
companyID: options.CompanyID,
public: options.Public,
public: options.MarketplaceFetchPublicItems,
}

table, err := getMarketplaceItemsTable(context.Background(), apiClient, marketplaceItemsOptions)
Expand Down

0 comments on commit 904e0ae

Please sign in to comment.