X Tutup
Skip to content

Commit bf34147

Browse files
committed
Allow --force and --dry-run
1 parent 5159521 commit bf34147

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

pkg/cmd/extension/command.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
128128
if len(args) > 0 && flagAll {
129129
return cmdutil.FlagErrorf("cannot use `--all` with extension name")
130130
}
131-
if flagForce && flagDryRun {
132-
return cmdutil.FlagErrorf("cannot use `--force` and `--dry-run`")
133-
}
134131
if len(args) > 1 {
135132
return cmdutil.FlagErrorf("too many arguments")
136133
}

pkg/cmd/extension/command_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ func TestNewCmdExtension(t *testing.T) {
9898
wantErr: true,
9999
errMsg: "cannot use `--all` with extension name",
100100
},
101-
{
102-
name: "upgrade --force and --dry-run error",
103-
args: []string{"upgrade", "test", "--force", "--dry-run"},
104-
wantErr: true,
105-
errMsg: "cannot use `--force` and `--dry-run`",
106-
},
107101
{
108102
name: "upgrade an extension",
109103
args: []string{"upgrade", "hello"},

0 commit comments

Comments
 (0)
X Tutup