From 6163604633bb4512a721fd04f160a94df042a71f Mon Sep 17 00:00:00 2001 From: Steve Ramage Date: Tue, 3 Mar 2026 10:09:05 -0800 Subject: [PATCH] fix: change delete-all default page length and get-all json output (Resolves #661) --- cmd/delete-all.go | 4 ++-- external/id/idable_attributes.go | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/delete-all.go b/cmd/delete-all.go index e8cfe16..4f070c8 100644 --- a/cmd/delete-all.go +++ b/cmd/delete-all.go @@ -24,10 +24,10 @@ import ( func NewDeleteAllCommand(parentCmd *cobra.Command) func() { - var pageLength uint16 = 25 + var pageLength uint16 = 100 resetFunc := func() { - pageLength = 25 + pageLength = 100 } var deleteAll = &cobra.Command{ diff --git a/external/id/idable_attributes.go b/external/id/idable_attributes.go index 1b6230b..74c6fad 100644 --- a/external/id/idable_attributes.go +++ b/external/id/idable_attributes.go @@ -1,9 +1,9 @@ package id type IdableAttributes struct { - Id string `yaml:"id"` - Slug string `yaml:"slug,omitempty"` - Sku string `yaml:"sku,omitempty"` - Code string `yaml:"code,omitempty"` - ExternalRef string `yaml:"external_ref,omitempty"` + Id string `yaml:"id" json:"id"` + Slug string `yaml:"slug,omitempty" json:"slug,omitempty"` + Sku string `yaml:"sku,omitempty" json:"sku,omitempty"` + Code string `yaml:"code,omitempty" json:"code,omitempty"` + ExternalRef string `yaml:"external_ref,omitempty" json:"external_ref,omitempty"` }