Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Apr 3, 2024
1 parent 117c490 commit 6e38501
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion docs/v3/examples/bash-completions.md
Expand Up @@ -188,7 +188,7 @@ The default shell completion flag (`--generate-bash-completion`) is defined as

<!-- {
"args": ["&#45;&#45;generate&#45;shell&#45;completion"],
"output": "wat\nhelp\nh"
"output": "wat\nhelp\n"
} -->
```go
package main
Expand Down
7 changes: 0 additions & 7 deletions examples_test.go
Expand Up @@ -269,11 +269,8 @@ func ExampleCommand_Run_shellComplete_bash_withShortFlag() {
_ = cmd.Run(context.Background(), os.Args)
// Output:
// --other
// -o
// --xyz
// -x
// --help
// -h
}

func ExampleCommand_Run_shellComplete_bash_withLongFlag() {
Expand Down Expand Up @@ -376,10 +373,8 @@ func ExampleCommand_Run_shellComplete_bash() {
_ = cmd.Run(context.Background(), os.Args)
// Output:
// describeit
// d
// next
// help
// h
}

func ExampleCommand_Run_shellComplete_zsh() {
Expand Down Expand Up @@ -415,10 +410,8 @@ func ExampleCommand_Run_shellComplete_zsh() {
_ = cmd.Run(context.Background(), os.Args)
// Output:
// describeit:use it to see a description
// d:use it to see a description
// next:next example
// help:Shows a list of commands or help for one command
// h:Shows a list of commands or help for one command
}

func ExampleCommand_Run_sliceValues() {
Expand Down

0 comments on commit 6e38501

Please sign in to comment.