File tree 3 files changed +8
-58
lines changed
3 files changed +8
-58
lines changed Original file line number Diff line number Diff line change 7
7
"os"
8
8
9
9
"github.com/sirupsen/logrus"
10
+ "github.com/spf13/cobra"
10
11
11
12
helm_v3 "github.com/werf/3p-helm/cmd/helm"
12
13
"github.com/werf/logboek"
@@ -44,6 +45,10 @@ func main() {
44
45
45
46
root .SetupTelemetryInit (rootCmd )
46
47
48
+ // WARNING this behaviour could be changed
49
+ // https://github.com/spf13/cobra/pull/2167 is not accepted yet
50
+ cobra .EnableErrorOnUnknownSubcommand = true
51
+
47
52
if err := rootCmd .Execute (); err != nil {
48
53
if helm_v3 .IsPluginError (err ) {
49
54
common .ShutdownTelemetry (ctx , helm_v3 .PluginErrorCode (err ))
Original file line number Diff line number Diff line change @@ -409,4 +409,5 @@ replace (
409
409
github.com/deislabs/oras => github.com/werf/3p-oras v0.9.1-0.20240115121544-03962ecbd40a // upstream not maintained
410
410
github.com/docker/buildx => github.com/werf/3p-docker-buildx v0.13.0-rc2.0.20241111114615-d77c2e1444ad // upstream not maintained
411
411
github.com/jaguilar/vt100 => github.com/tonistiigi/vt100 v0.0.0-20190402012908-ad4c4a574305 // upstream not maintained
412
+ github.com/spf13/cobra => github.com/andremueller/cobra v0.0.0-20241025091859-0d550c15a8a4 // remove after merge to upstream
412
413
)
You can’t perform that action at this time.
0 commit comments