Skip to content

Commit 6163604

Browse files
committed
fix: change delete-all default page length and get-all json output (Resolves #661)
1 parent fd73248 commit 6163604

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

cmd/delete-all.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ import (
2424

2525
func NewDeleteAllCommand(parentCmd *cobra.Command) func() {
2626

27-
var pageLength uint16 = 25
27+
var pageLength uint16 = 100
2828

2929
resetFunc := func() {
30-
pageLength = 25
30+
pageLength = 100
3131
}
3232

3333
var deleteAll = &cobra.Command{

external/id/idable_attributes.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package id
22

33
type IdableAttributes struct {
4-
Id string `yaml:"id"`
5-
Slug string `yaml:"slug,omitempty"`
6-
Sku string `yaml:"sku,omitempty"`
7-
Code string `yaml:"code,omitempty"`
8-
ExternalRef string `yaml:"external_ref,omitempty"`
4+
Id string `yaml:"id" json:"id"`
5+
Slug string `yaml:"slug,omitempty" json:"slug,omitempty"`
6+
Sku string `yaml:"sku,omitempty" json:"sku,omitempty"`
7+
Code string `yaml:"code,omitempty" json:"code,omitempty"`
8+
ExternalRef string `yaml:"external_ref,omitempty" json:"external_ref,omitempty"`
99
}

0 commit comments

Comments
 (0)