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

Mention that completion doesn't work for all versions of shells #53

Closed
blogh opened this issue Sep 27, 2023 · 0 comments · Fixed by #65
Closed

Mention that completion doesn't work for all versions of shells #53

blogh opened this issue Sep 27, 2023 · 0 comments · Fixed by #65
Labels
enhancement New feature or request

Comments

@blogh
Copy link
Collaborator

blogh commented Sep 27, 2023

(.venv) [vagrant@p2 check_patroni]$ eval "$(_CHECK_PATRONI_COMPLETE=bash_source check_patroni)"        
Traceback (most recent call last):
  File "/home/vagrant/check_patroni/.venv/bin/check_patroni", line 11, in <module>
    load_entry_point('check-patroni', 'console_scripts', 'check_patroni')()
  File "/home/vagrant/check_patroni/.venv/lib64/python3.6/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/vagrant/check_patroni/.venv/lib64/python3.6/site-packages/click/core.py", line 1048, in main
    self._main_shell_completion(extra, prog_name, complete_var)
  File "/home/vagrant/check_patroni/.venv/lib64/python3.6/site-packages/click/core.py", line 1123, in _main_shell_completion
    rv = shell_complete(self, ctx_args, prog_name, complete_var, instruction)
  File "/home/vagrant/check_patroni/.venv/lib64/python3.6/site-packages/click/shell_completion.py", line 45, in shell_complete
    echo(comp.source())
  File "/home/vagrant/check_patroni/.venv/lib64/python3.6/site-packages/click/shell_completion.py", line 326, in source
    self._check_version()
  File "/home/vagrant/check_patroni/.venv/lib64/python3.6/site-packages/click/shell_completion.py", line 316, in _check_version
    "Shell completion is not supported for Bash"
RuntimeError: Shell completion is not supported for Bash versions older than 4.4.
(.venv) [vagrant@p2 check_patroni]$ bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant