Skip to content

Commit 57d00c1

Browse files
committed
Removed shared references from root.go parent package.
1 parent 6fedc2f commit 57d00c1

43 files changed

Lines changed: 102 additions & 168 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/workspace/alert/datadog/create.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ type CreateCommand struct {
2121
argparser.JSONOutput
2222

2323
// Required.
24-
alert.WorkspaceIDFlags
25-
ConfigFlags
24+
WorkspaceID argparser.OptionalWorkspaceID
25+
Key string
26+
Site string
2627

2728
// Optional.
28-
alert.DataFlags
29+
Description argparser.OptionalString
2930
}
3031

3132
// NewCreateCommand returns a usable command registered under the parent.

pkg/commands/ngwaf/workspace/alert/datadog/delete.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"io"
77

88
"github.com/fastly/cli/pkg/argparser"
9-
"github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert"
10-
119
fsterr "github.com/fastly/cli/pkg/errors"
1210
"github.com/fastly/cli/pkg/global"
1311
"github.com/fastly/cli/pkg/text"
@@ -21,8 +19,8 @@ type DeleteCommand struct {
2119
argparser.JSONOutput
2220

2321
// Required.
24-
alert.IDFlags
25-
alert.WorkspaceIDFlags
22+
AlertID string
23+
WorkspaceID argparser.OptionalWorkspaceID
2624
}
2725

2826
// NewDeleteCommand returns a usable command registered under the parent.

pkg/commands/ngwaf/workspace/alert/datadog/get.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"io"
77

88
"github.com/fastly/cli/pkg/argparser"
9-
"github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert"
10-
119
fsterr "github.com/fastly/cli/pkg/errors"
1210
"github.com/fastly/cli/pkg/global"
1311
"github.com/fastly/cli/pkg/text"
@@ -21,8 +19,8 @@ type GetCommand struct {
2119
argparser.JSONOutput
2220

2321
// Required.
24-
alert.IDFlags
25-
alert.WorkspaceIDFlags
22+
AlertID string
23+
WorkspaceID argparser.OptionalWorkspaceID
2624
}
2725

2826
// NewGetCommand returns a usable command registered under the parent.

pkg/commands/ngwaf/workspace/alert/datadog/list.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"io"
77

88
"github.com/fastly/cli/pkg/argparser"
9-
"github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert"
10-
119
fsterr "github.com/fastly/cli/pkg/errors"
1210
"github.com/fastly/cli/pkg/global"
1311
"github.com/fastly/cli/pkg/text"
@@ -21,7 +19,7 @@ type ListCommand struct {
2119
argparser.JSONOutput
2220

2321
// Required.
24-
alert.WorkspaceIDFlags
22+
WorkspaceID argparser.OptionalWorkspaceID
2523
}
2624

2725
// NewListCommand returns a usable command registered under the parent.

pkg/commands/ngwaf/workspace/alert/datadog/update.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ type UpdateCommand struct {
2121
argparser.JSONOutput
2222

2323
// Required.
24-
alert.IDFlags
25-
alert.WorkspaceIDFlags
26-
ConfigFlags
24+
AlertID string
25+
WorkspaceID argparser.OptionalWorkspaceID
26+
Key string
27+
Site string
2728
}
2829

2930
// NewUpdateCommand returns a usable command registered under the parent.

pkg/commands/ngwaf/workspace/alert/jira/create.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ type CreateCommand struct {
2020
argparser.JSONOutput
2121

2222
// Required.
23-
alert.WorkspaceIDFlags
24-
ConfigFlags
23+
WorkspaceID argparser.OptionalWorkspaceID
24+
Host string
25+
Key string
26+
Project string
27+
Username string
2528

2629
// Optional.
27-
alert.DataFlags
28-
OptConfigFlags
30+
Description argparser.OptionalString
31+
IssueType string
2932
}
3033

3134
// NewCreateCommand returns a usable command registered under the parent.

pkg/commands/ngwaf/workspace/alert/jira/delete.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"io"
77

88
"github.com/fastly/cli/pkg/argparser"
9-
"github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert"
109
fsterr "github.com/fastly/cli/pkg/errors"
1110
"github.com/fastly/cli/pkg/global"
1211
"github.com/fastly/cli/pkg/text"
@@ -20,8 +19,8 @@ type DeleteCommand struct {
2019
argparser.JSONOutput
2120

2221
// Required.
23-
alert.IDFlags
24-
alert.WorkspaceIDFlags
22+
AlertID string
23+
WorkspaceID argparser.OptionalWorkspaceID
2524
}
2625

2726
// NewDeleteCommand returns a usable command registered under the parent.

pkg/commands/ngwaf/workspace/alert/jira/get.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"io"
77

88
"github.com/fastly/cli/pkg/argparser"
9-
"github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert"
109
fsterr "github.com/fastly/cli/pkg/errors"
1110
"github.com/fastly/cli/pkg/global"
1211
"github.com/fastly/cli/pkg/text"
@@ -20,8 +19,8 @@ type GetCommand struct {
2019
argparser.JSONOutput
2120

2221
// Required.
23-
alert.IDFlags
24-
alert.WorkspaceIDFlags
22+
AlertID string
23+
WorkspaceID argparser.OptionalWorkspaceID
2524
}
2625

2726
// NewGetCommand returns a usable command registered under the parent.

pkg/commands/ngwaf/workspace/alert/jira/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"io"
77

88
"github.com/fastly/cli/pkg/argparser"
9-
"github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert"
109
fsterr "github.com/fastly/cli/pkg/errors"
1110
"github.com/fastly/cli/pkg/global"
1211
"github.com/fastly/cli/pkg/text"
@@ -20,7 +19,7 @@ type ListCommand struct {
2019
argparser.JSONOutput
2120

2221
// Required.
23-
alert.WorkspaceIDFlags
22+
WorkspaceID argparser.OptionalWorkspaceID
2423
}
2524

2625
// NewListCommand returns a usable command registered under the parent.

pkg/commands/ngwaf/workspace/alert/jira/update.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ type UpdateCommand struct {
2020
argparser.JSONOutput
2121

2222
// Required.
23-
alert.IDFlags
24-
alert.WorkspaceIDFlags
25-
ConfigFlags
23+
AlertID string
24+
WorkspaceID argparser.OptionalWorkspaceID
25+
Host string
26+
Key string
27+
Project string
28+
Username string
2629

2730
// Optional
28-
OptConfigFlags
31+
IssueType string
2932
}
3033

3134
// NewUpdateCommand returns a usable command registered under the parent.

0 commit comments

Comments
 (0)