Skip to content

Conversation

@jkachmar
Copy link

@jkachmar jkachmar commented May 6, 2025

What was changed

expose a hidden --generate-bash-completion flag, which produces a stub that urfave's shell autocomplete scripts can use for tab completion.

Why?

urfave-v2 supports automatically generating a shell completion stub1 for use with their bash2 and zsh3 completion scripts.

Checklist

  1. How was this tested? built tcld and verified that the autocompletion behavior works as-expected
  2. Any docs updates needed? I don't think so; this should only be relevant to people packaging this for distribution

Footnotes

  1. https://cli.urfave.org/v2/examples/bash-completions/

  2. https://github.com/urfave/cli/blob/v2-maint/autocomplete/bash_autocomplete

  3. https://github.com/urfave/cli/blob/v2-maint/autocomplete/zsh_autocomplete

@jkachmar jkachmar requested a review from a team as a code owner May 6, 2025 17:24
@CLAassistant
Copy link

CLAassistant commented May 6, 2025

CLA assistant check
All committers have signed the CLA.

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