build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.0

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

PH: manually update the completion scripts and fix deprecated function
call.

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
dependabot[bot]
2022-10-12 12:10:01 +00:00
committed by Paul Holzinger
parent 1db0735068
commit b256f5f587
29 changed files with 670 additions and 105 deletions

View File

@ -128,7 +128,7 @@ __podman_process_completion_results() {
__podman_handle_special_char "$cur" =
# Print the activeHelp statements before we finish
if [ ${#activeHelp} -ne 0 ]; then
if [ ${#activeHelp[*]} -ne 0 ]; then
printf "\n";
printf "%s\n" "${activeHelp[@]}"
printf "\n"

View File

@ -128,7 +128,7 @@ __podman-remote_process_completion_results() {
__podman-remote_handle_special_char "$cur" =
# Print the activeHelp statements before we finish
if [ ${#activeHelp} -ne 0 ]; then
if [ ${#activeHelp[*]} -ne 0 ]; then
printf "\n";
printf "%s\n" "${activeHelp[@]}"
printf "\n"

View File

@ -10,7 +10,7 @@ filter __podman-remote_escapeStringWithSpecialChars {
$_ -replace '\s|#|@|\$|;|,|''|\{|\}|\(|\)|"|`|\||<|>|&','`$&'
}
Register-ArgumentCompleter -CommandName 'podman-remote' -ScriptBlock {
[scriptblock]$__podman_remoteCompleterBlock = {
param(
$WordToComplete,
$CommandAst,
@ -227,4 +227,6 @@ Register-ArgumentCompleter -CommandName 'podman-remote' -ScriptBlock {
}
}
Register-ArgumentCompleter -CommandName 'podman-remote' -ScriptBlock $__podman_remoteCompleterBlock
# This file is generated with "podman-remote completion"; see: podman-completion(1)

View File

@ -10,7 +10,7 @@ filter __podman_escapeStringWithSpecialChars {
$_ -replace '\s|#|@|\$|;|,|''|\{|\}|\(|\)|"|`|\||<|>|&','`$&'
}
Register-ArgumentCompleter -CommandName 'podman' -ScriptBlock {
[scriptblock]$__podmanCompleterBlock = {
param(
$WordToComplete,
$CommandAst,
@ -227,4 +227,6 @@ Register-ArgumentCompleter -CommandName 'podman' -ScriptBlock {
}
}
Register-ArgumentCompleter -CommandName 'podman' -ScriptBlock $__podmanCompleterBlock
# This file is generated with "podman completion"; see: podman-completion(1)