Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash completion not working for sub-commands #1780

Open
rgl opened this issue Feb 24, 2025 · 0 comments
Open

Bash completion not working for sub-commands #1780

rgl opened this issue Feb 24, 2025 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node.

Comments

@rgl
Copy link

rgl commented Feb 24, 2025

What happened:

bash completions for sub-commands do not show up, e.g., the long options of the ps sub-command do not show up:

root@linux:~# crictl ps --
--config                             --help                               --profile-mem                        --tracing-endpoint
--debug                              --image-endpoint                     --runtime-endpoint                   --tracing-sampling-rate-per-million
--enable-tracing                     --profile-cpu                        --timeout                            --version

What you expected to happen:

I expect completion to restrict the suggested option depending on the context of the partial arguments that are on the command line, just like other cli tool, like kubectl.

How to reproduce it (as minimally and precisely as possible):

See the previous What happened section.

Anything else we need to know?:

This was already reported at #645, which was closed without resolution.

Environment:

  • Container runtime or hardware configuration: n/a
  • OS (e.g: cat /etc/os-release): n/a
  • Kernel (e.g. uname -a): n/a
  • Others: n/a
@rgl rgl added kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node. labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node.
Projects
None yet
Development

No branches or pull requests

1 participant