diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-22 17:09:43 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-22 18:54:34 +0200 |
commit | 288be1976d766f8b5c693da1830866cff616241d (patch) | |
tree | a81b12dce3a8e4c6cf60dadcb2fa8b32e3ea01c9 | |
parent | 9a0370e8eb71fed3ac04984020b6aa95c43f22ab (diff) |
Fix "unknown command" message when no suggestion
Updates #10953
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | go.sum | 2 | ||||
-rw-r--r-- | testscripts/commands/commands_errors.txt | 5 |
3 files changed, 8 insertions, 1 deletions
@@ -16,7 +16,7 @@ require ( github.com/bep/helpers v0.4.0 github.com/bep/lazycache v0.2.0 github.com/bep/overlayfs v0.6.0 - github.com/bep/simplecobra v0.3.0 + github.com/bep/simplecobra v0.3.1 github.com/bep/tmc v0.5.1 github.com/clbanning/mxj/v2 v2.5.7 github.com/cli/safeexec v1.0.1 @@ -633,6 +633,8 @@ github.com/bep/overlayfs v0.6.0 h1:sgLcq/qtIzbaQNl2TldGXOkHvqeZB025sPvHOQL+DYo= github.com/bep/overlayfs v0.6.0/go.mod h1:NFjSmn3kCqG7KX2Lmz8qT8VhPPCwZap3UNogXawoQHM= github.com/bep/simplecobra v0.3.0 h1:BEeb/Q5qdsv5Yy9Go30ynZtAbI+jHV4f5VtNSXvp91E= github.com/bep/simplecobra v0.3.0/go.mod h1:EOp6bCKuuHmwA9bQcRC8LcDB60co2Cmht5X4xMIOwf0= +github.com/bep/simplecobra v0.3.1 h1:Ms9BucXcJRiGbPYpaJyxItYceQN/pvEZ0+V1+cUcsZ4= +github.com/bep/simplecobra v0.3.1/go.mod h1:EOp6bCKuuHmwA9bQcRC8LcDB60co2Cmht5X4xMIOwf0= github.com/bep/tmc v0.5.1 h1:CsQnSC6MsomH64gw0cT5f+EwQDcvZz4AazKunFwTpuI= github.com/bep/tmc v0.5.1/go.mod h1:tGYHN8fS85aJPhDLgXETVKp+PR382OvFi2+q2GkGsq0= github.com/bep/workers v1.0.0 h1:U+H8YmEaBCEaFZBst7GcRVEoqeRC9dzH2dWOwGmOchg= diff --git a/testscripts/commands/commands_errors.txt b/testscripts/commands/commands_errors.txt index fcce6197f..54448361d 100644 --- a/testscripts/commands/commands_errors.txt +++ b/testscripts/commands/commands_errors.txt @@ -1,7 +1,12 @@ # Testing various error situations. ! hugo mods +stderr 'unknown command "mods" for "hugo"' stderr 'Did you mean this\?' ! hugo mod clea stderr 'Did you mean this\?' +stderr 'clean' + +! hugo mod foo +stderr 'unknown command "foo" for "hugo mod"'
\ No newline at end of file |