| 1 |
Fromscip-debian debian caddy 2.11.4-1 caddy/patches/`0005-Remove-obsolote-subcommands.patch`#From.: Peymaneh <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian caddy 2.11.4-1 caddy/patches/`0005-Remove-obsolote-subcommands.patch`#Date.: Mon, 2 Jan 2023 21:33:36 +0100 |
| 3 |
Subjectscip-debian debian caddy 2.11.4-1 caddy/patches/`0005-Remove-obsolote-subcommands.patch`#Subject.: Remove obsolote subcommands |
| 4 |
|
| 5 |
forwarded: not-needed |
| 6 |
--- |
| 7 |
cmd/commands.go | 76 +++++++++++---------------------------------------------- |
| 8 |
1 file changed, 14 insertions(+), 62 deletions(-) |
| 9 |
|
| 10 |
--- a/cmd/commands.goscip-debian debian caddy 2.11.4-1 caddy/upstream/`cmd/commands.go`: |
| 11 |
+++ b/cmd/commands.goscip-debian debian caddy 2.11.4-1 caddy/upstream/`cmd/commands.go`: |
| 12 |
@@ -405,51 +405,6 @@ |
| 13 |
}, |
| 14 |
}) |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
defaultFactory.Use(func(rootCmd *cobra.Command) { |
| 62 |
manpageCommand := Command{ |
| 63 |
Name: "manpage", |
| 64 |
--- a/cmd/commands_test.goscip-debian debian caddy 2.11.4-1 caddy/upstream/`cmd/commands_test.go`: |
| 65 |
+++ b/cmd/commands_test.goscip-debian debian caddy 2.11.4-1 caddy/upstream/`cmd/commands_test.go`: |
| 66 |
@@ -15,22 +15,22 @@ |
| 67 |
t.Fatal("default factory failed to build") |
| 68 |
} |
| 69 |
|
| 70 |
|
| 71 |
+ // check that the default factory has 14 commands; it doesn't |
| 72 |
// include the commands registered through calls to init in |
| 73 |
// other packages |
| 74 |
cmds := Commands() |
| 75 |
|
| 76 |
|
| 77 |
+ if len(cmds) != 14 { |
| 78 |
+ t.Errorf("expected 14 commands, got %d", len(cmds)) |
| 79 |
} |
| 80 |
|
| 81 |
commandNames := slices.Collect(maps.Keys(cmds)) |
| 82 |
slices.Sort(commandNames) |
| 83 |
|
| 84 |
expectedCommandNames := []string{ |
| 85 |
|
| 86 |
+ "adapt", "build-info", "completion", |
| 87 |
"environ", "fmt", "list-modules", "manpage", |
| 88 |
|
| 89 |
|
| 90 |
+ "reload", "run", "start", |
| 91 |
+ "stop", "storage", "validate", "version", |
| 92 |
} |
| 93 |
|
| 94 |
if !reflect.DeepEqual(expectedCommandNames, commandNames) { |