Did you know the Swift Argument Parser can generate shell completion scripts automatically? 📖✨
Discover these hidden gems and more advanced features that can make your CLI tools more professional and user-friendly!
Did you know the Swift Argument Parser can generate shell completion scripts automatically? 📖✨
Discover these hidden gems and more advanced features that can make your CLI tools more professional and user-friendly!
@swifttoolkit If you install Swift command-line tools with Homebrew, it does the completion script generation and registration automatically for you. At least after I updated the ones supporting this feature yesterday with https://github.com/Homebrew/homebrew-core/pull/233732. 😉
You only need to configure this once: https://docs.brew.sh/Shell-Completion
Swift packages using Swift Argument Parser for their CLI should be able to generate completion scripts themselves with the --generate-completion-script. Not sure if multiple formulae can be updated...