Skip to content

Commit bcdf317

Browse files
committed
fixed typos
1 parent e63cb49 commit bcdf317

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

pkg/commands/ngwaf/workspace/redaction/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type CreateCommand struct {
2424
workspaceID argparser.OptionalWorkspaceID
2525
}
2626

27-
// NewUpdateCommand returns a usable command registered under the parent.
27+
// NewCreateCommand returns a usable command registered under the parent.
2828
func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateCommand {
2929
c := CreateCommand{
3030
Base: argparser.Base{

pkg/commands/ngwaf/workspace/redaction/delete.go

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

18-
// DeleteCommand calls the Fastly API to delete a workspace.
18+
// DeleteCommand calls the Fastly API to delete a redaction.
1919
type DeleteCommand struct {
2020
argparser.Base
2121
argparser.JSONOutput
@@ -36,7 +36,7 @@ func NewDeleteCommand(parent argparser.Registerer, g *global.Data) *DeleteComman
3636
c.CmdClause = parent.Command("delete", "Delete a redaction")
3737

3838
// Required.
39-
c.CmdClause.Flag("redaction-id", "Workspace ID").Required().StringVar(&c.redactionID)
39+
c.CmdClause.Flag("redaction-id", "Redaction ID").Required().StringVar(&c.redactionID)
4040
c.RegisterFlag(argparser.StringFlagOpts{
4141
Name: argparser.FlagNGWAFWorkspaceID,
4242
Description: argparser.FlagNGWAFWorkspaceIDDesc,

pkg/commands/ngwaf/workspace/redaction/retrieve.go

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

17-
// GetCommand calls the Fastly API to get a workspace.
17+
// GetCommand calls the Fastly API to get a redaction.
1818
type GetCommand struct {
1919
argparser.Base
2020
argparser.JSONOutput

pkg/commands/ngwaf/workspace/virtualpatch/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand {
3131
},
3232
}
3333

34-
c.CmdClause = parent.Command("list", "List vitual patches in a workspace")
34+
c.CmdClause = parent.Command("list", "List virtual patches in a workspace")
3535

3636
// Required.
3737
c.CmdClause.Flag("workspace-id", "Workspace ID").Required().StringVar(&c.workspaceID)

pkg/commands/ngwaf/workspace/virtualpatch/retrieve.go

Lines changed: 2 additions & 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-
// GetCommand calls the Fastly API to get a workspace.
17+
// GetCommand calls the Fastly API to get a virtual patch.
1818
type GetCommand struct {
1919
argparser.Base
2020
argparser.JSONOutput
@@ -32,7 +32,7 @@ func NewRetrieveCommand(parent argparser.Registerer, g *global.Data) *GetCommand
3232
},
3333
}
3434

35-
c.CmdClause = parent.Command("retrieve", "Retrieve a vitual patch").Alias("get")
35+
c.CmdClause = parent.Command("retrieve", "Retrieve a virtual patch").Alias("get")
3636

3737
// Required.
3838
c.CmdClause.Flag("virtual-patch-id", "Virtual Patch ID").Required().StringVar(&c.virtualpatchID)

pkg/commands/ngwaf/workspace/virtualpatch/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func NewUpdateCommand(parent argparser.Registerer, g *global.Data) *UpdateComman
4444
// Optional.
4545
c.RegisterFlag(argparser.StringFlagOpts{
4646
Name: "enabled",
47-
Description: "Specify the the toggle status indicator of the VirtualPatch.",
47+
Description: "Specify the toggle status indicator of the virtual patch.",
4848
Action: c.enabled.Set,
4949
Dst: &c.enabled.Value,
5050
})

0 commit comments

Comments
 (0)