Skip to content

Commit c0a29a1

Browse files
remove extra input field and add hyphen to level descriptions
1 parent 6b2eace commit c0a29a1

61 files changed

Lines changed: 70 additions & 126 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pkg/commands/ngwaf/accountcountrylist/create.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/fastly/cli/pkg/text"
1515
)
1616

17-
// CreateCommand calls the Fastly API to create account level country lists.
17+
// CreateCommand calls the Fastly API to create account-level country lists.
1818
type CreateCommand struct {
1919
argparser.Base
2020
argparser.JSONOutput
@@ -34,7 +34,7 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman
3434
Globals: g,
3535
},
3636
}
37-
c.CmdClause = parent.Command("create", "Create an account level country list").Alias("add")
37+
c.CmdClause = parent.Command("create", "Create an account-level country list").Alias("add")
3838

3939
// Required.
4040
c.CmdClause.Flag("entries", "Entries for the list. Can either a comma separated list or a path to a file.").Required().StringVar(&c.entries)
@@ -59,7 +59,6 @@ func (c *CreateCommand) Exec(_ io.Reader, out io.Writer) error {
5959
Name: c.name,
6060
Type: "country",
6161
WorkspaceID: nil,
62-
Out: out,
6362
}
6463

6564
var ok bool

pkg/commands/ngwaf/accountcountrylist/delete.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/fastly/cli/pkg/text"
1515
)
1616

17-
// DeleteCommand calls the Fastly API to delete an account level country list.
17+
// DeleteCommand calls the Fastly API to delete an account-level country list.
1818
type DeleteCommand struct {
1919
argparser.Base
2020
argparser.JSONOutput
@@ -52,7 +52,6 @@ func (c *DeleteCommand) Exec(_ io.Reader, out io.Writer) error {
5252
CommandScope: scope.ScopeTypeAccount,
5353
ListID: c.listID,
5454
WorkspaceID: nil,
55-
Out: out,
5655
}
5756

5857
var ok bool
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// Package accountcountrylist contains commands to inspect and manipulate NGWAF account level country lists.
1+
// Package accountcountrylist contains commands to inspect and manipulate NGWAF account-level country lists.
22
package accountcountrylist

pkg/commands/ngwaf/accountcountrylist/get.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/fastly/go-fastly/v12/fastly/ngwaf/v1/scope"
1414
)
1515

16-
// GetCommand calls the Fastly API to get an account level country list.
16+
// GetCommand calls the Fastly API to get an account-level country list.
1717
type GetCommand struct {
1818
argparser.Base
1919
argparser.JSONOutput
@@ -30,7 +30,7 @@ func NewGetCommand(parent argparser.Registerer, g *global.Data) *GetCommand {
3030
},
3131
}
3232

33-
c.CmdClause = parent.Command("get", "Get an account level country list")
33+
c.CmdClause = parent.Command("get", "Get an account-level country list")
3434

3535
// Required.
3636
c.CmdClause.Flag("list-id", "List ID").Required().StringVar(&c.listID)
@@ -51,7 +51,6 @@ func (c *GetCommand) Exec(_ io.Reader, out io.Writer) error {
5151
CommandScope: scope.ScopeTypeAccount,
5252
ListID: c.listID,
5353
WorkspaceID: nil,
54-
Out: out,
5554
}
5655

5756
var ok bool

pkg/commands/ngwaf/accountcountrylist/list.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ func (c *ListCommand) Exec(_ io.Reader, out io.Writer) error {
4747
CommandScope: scope.ScopeTypeAccount,
4848
Type: "country",
4949
WorkspaceID: nil,
50-
Out: out,
5150
}
5251

5352
var ok bool

pkg/commands/ngwaf/accountcountrylist/update.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman
3434
Globals: g,
3535
},
3636
}
37-
c.CmdClause = parent.Command("update", "Update an account level country list")
37+
c.CmdClause = parent.Command("update", "Update an account-level country list")
3838

3939
// Required.
4040
c.CmdClause.Flag("list-id", "List ID").Required().StringVar(&c.listID)
@@ -58,7 +58,6 @@ func (c *UpdateCommand) Exec(_ io.Reader, out io.Writer) error {
5858
Entries: c.entries,
5959
ListID: c.listID,
6060
WorkspaceID: nil,
61-
Out: out,
6261
}
6362

6463
var ok bool

pkg/commands/ngwaf/accountiplist/create.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/fastly/cli/pkg/text"
1515
)
1616

17-
// CreateCommand calls the Fastly API to create account level ip lists.
17+
// CreateCommand calls the Fastly API to create account-level ip lists.
1818
type CreateCommand struct {
1919
argparser.Base
2020
argparser.JSONOutput
@@ -34,7 +34,7 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman
3434
Globals: g,
3535
},
3636
}
37-
c.CmdClause = parent.Command("create", "Create an account level ip list").Alias("add")
37+
c.CmdClause = parent.Command("create", "Create an account-level ip list").Alias("add")
3838

3939
// Required.
4040
c.CmdClause.Flag("entries", "Entries for the list. Can either a comma separated list or a path to a file.").Required().StringVar(&c.entries)
@@ -59,7 +59,6 @@ func (c *CreateCommand) Exec(_ io.Reader, out io.Writer) error {
5959
Name: c.name,
6060
Type: "ip",
6161
WorkspaceID: nil,
62-
Out: out,
6362
}
6463

6564
var ok bool

pkg/commands/ngwaf/accountiplist/delete.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/fastly/cli/pkg/text"
1515
)
1616

17-
// DeleteCommand calls the Fastly API to delete an account level ip list.
17+
// DeleteCommand calls the Fastly API to delete an account-level ip list.
1818
type DeleteCommand struct {
1919
argparser.Base
2020
argparser.JSONOutput
@@ -52,7 +52,6 @@ func (c *DeleteCommand) Exec(_ io.Reader, out io.Writer) error {
5252
CommandScope: scope.ScopeTypeAccount,
5353
ListID: c.listID,
5454
WorkspaceID: nil,
55-
Out: out,
5655
}
5756

5857
var ok bool
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// Package accountiplist contains commands to inspect and manipulate NGWAF account level ip lists.
1+
// Package accountiplist contains commands to inspect and manipulate NGWAF account-level ip lists.
22
package accountiplist

pkg/commands/ngwaf/accountiplist/get.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/fastly/go-fastly/v12/fastly/ngwaf/v1/scope"
1414
)
1515

16-
// GetCommand calls the Fastly API to get an account level ip list.
16+
// GetCommand calls the Fastly API to get an account-level ip list.
1717
type GetCommand struct {
1818
argparser.Base
1919
argparser.JSONOutput
@@ -30,7 +30,7 @@ func NewGetCommand(parent argparser.Registerer, g *global.Data) *GetCommand {
3030
},
3131
}
3232

33-
c.CmdClause = parent.Command("get", "Get an account level ip list")
33+
c.CmdClause = parent.Command("get", "Get an account-level ip list")
3434

3535
// Required.
3636
c.CmdClause.Flag("list-id", "List ID").Required().StringVar(&c.listID)
@@ -51,7 +51,6 @@ func (c *GetCommand) Exec(_ io.Reader, out io.Writer) error {
5151
CommandScope: scope.ScopeTypeAccount,
5252
ListID: c.listID,
5353
WorkspaceID: nil,
54-
Out: out,
5554
}
5655

5756
var ok bool

0 commit comments

Comments
 (0)