Fix some typos (mostly found by codespell) (#1514)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-12-08 00:06:52 +01:00 committed by GitHub
parent ff2c55e323
commit 1854bb5c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -1414,16 +1414,16 @@ func TestPersistentHooks(t *testing.T) {
name string name string
got string got string
}{ }{
// TODO: currently PersistenPreRun* defined in parent does not // TODO: currently PersistentPreRun* defined in parent does not
// run if the matchin child subcommand has PersistenPreRun. // run if the matching child subcommand has PersistentPreRun.
// If the behavior changes (https://github.com/spf13/cobra/issues/252) // If the behavior changes (https://github.com/spf13/cobra/issues/252)
// this test must be fixed. // this test must be fixed.
{"parentPersPreArgs", parentPersPreArgs}, {"parentPersPreArgs", parentPersPreArgs},
{"parentPreArgs", parentPreArgs}, {"parentPreArgs", parentPreArgs},
{"parentRunArgs", parentRunArgs}, {"parentRunArgs", parentRunArgs},
{"parentPostArgs", parentPostArgs}, {"parentPostArgs", parentPostArgs},
// TODO: currently PersistenPostRun* defined in parent does not // TODO: currently PersistentPostRun* defined in parent does not
// run if the matchin child subcommand has PersistenPostRun. // run if the matching child subcommand has PersistentPostRun.
// If the behavior changes (https://github.com/spf13/cobra/issues/252) // If the behavior changes (https://github.com/spf13/cobra/issues/252)
// this test must be fixed. // this test must be fixed.
{"parentPersPostArgs", parentPersPostArgs}, {"parentPersPostArgs", parentPersPostArgs},

View File

@ -233,7 +233,7 @@ Register-ArgumentCompleter -CommandName '%[1]s' -ScriptBlock {
Default { Default {
# Like MenuComplete but we don't want to add a space here because # Like MenuComplete but we don't want to add a space here because
# the user need to press space anyway to get the completion. # the user need to press space anyway to get the completion.
# Description will not be shown because thats not possible with TabCompleteNext # Description will not be shown because that's not possible with TabCompleteNext
[System.Management.Automation.CompletionResult]::new($($comp.Name | __%[1]s_escapeStringWithSpecialChars), "$($comp.Name)", 'ParameterValue', "$($comp.Description)") [System.Management.Automation.CompletionResult]::new($($comp.Name | __%[1]s_escapeStringWithSpecialChars), "$($comp.Name)", 'ParameterValue', "$($comp.Description)")
} }
} }