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

Enable Bash completions #33

Merged
merged 7 commits into from
Feb 2, 2025
Merged

Enable Bash completions #33

merged 7 commits into from
Feb 2, 2025

Conversation

bswck
Copy link
Contributor

@bswck bswck commented Jan 27, 2025

No description provided.

@pawamoy
Copy link
Owner

pawamoy commented Jan 27, 2025

@bswck I went with a CLI option (hidden from the generated help) to avoid the CLI erroring out because no arguments were passed. This initial draft works well!

TODO:

  • the TODO comments
  • add a --completion CLI option that renders the completions.bash script (binary and spaced_names variables) and print it on stdout, so that users can duty --completion > /path/to/completions/duty.completions.bash.

@pawamoy pawamoy marked this pull request as ready for review February 2, 2025 16:38
@pawamoy pawamoy merged commit 9ed4400 into pawamoy:main Feb 2, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants