From 6e38501c9872cd13967341aa67e7eb42c0b64c0e Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Thu, 4 Apr 2024 00:43:10 +0200 Subject: [PATCH] fix tests --- docs/v3/examples/bash-completions.md | 2 +- examples_test.go | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/v3/examples/bash-completions.md b/docs/v3/examples/bash-completions.md index 73c7fde707..737401ca63 100644 --- a/docs/v3/examples/bash-completions.md +++ b/docs/v3/examples/bash-completions.md @@ -188,7 +188,7 @@ The default shell completion flag (`--generate-bash-completion`) is defined as ```go package main diff --git a/examples_test.go b/examples_test.go index 1d0ee0d25f..b7050b801d 100644 --- a/examples_test.go +++ b/examples_test.go @@ -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() { @@ -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() { @@ -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() {