Skip to content

Commit

Permalink
example: remove injection cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jul 27, 2023
1 parent 63bcd15 commit fc5a727
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 35 deletions.
29 changes: 0 additions & 29 deletions example/cmd/injection.go

This file was deleted.

1 change: 0 additions & 1 deletion example/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func init() {
rootCmd.AddGroup(
&cobra.Group{ID: "main", Title: "Main Commands"},
&cobra.Group{ID: "modifier", Title: "Modifier Commands"},
&cobra.Group{ID: "test", Title: "Test Commands"},
&cobra.Group{ID: "plugin", Title: "Plugin Commands"},
)

Expand Down
7 changes: 2 additions & 5 deletions example/cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func TestRoot(t *testing.T) {
"modifier", "modifier example",
).Style(style.Yellow).Tag("modifier commands"),
carapace.ActionValuesDescribed(
"injection", "just trying to break things",
).Style(style.Magenta).Tag("test commands"),
"plugin", "dynamic plugin command",
).Style(style.Magenta).Tag("plugin commands"),
carapace.ActionValuesDescribed(
"chain", "shorthand chain",
"completion", "Generate the autocompletion script for the specified shell",
Expand All @@ -80,9 +80,6 @@ func TestRoot(t *testing.T) {
"multiparts", "multiparts example",
"special", "",
).Tag("other commands"),
carapace.ActionValuesDescribed(
"plugin", "dynamic plugin command",
).Style(style.Cyan).Tag("plugin commands"),
).ToA())

s.Run("a").
Expand Down

0 comments on commit fc5a727

Please sign in to comment.