ironbar
ironbar copied to clipboard
feat: add man pages and shell completions
Auto-generated with clap.
Note: May be ideal to replace some of the sub-commands with flags to decrease the amount of generated man pages.
Edit: Draft while I think of something better to do here
Upstream issue: https://github.com/clap-rs/clap/issues/5337
Could add shell completions now and think about man pages later.
Long-term could auto-complete bar names and other information as well.
Unfortunately I doubt I'll have time to work on this anytime soon but you're free to change anything as needed. Should also avoid duplicate code from src/ipc/commands.rs.
No worries, thanks for the heads up. I'm happy to take it from here, appreciate the work you've done to get it this far.
I'm going to drop manpage support for now because I see it having pretty limited use, especially when ironbar --help provides a much more ergonomic interface to see the same information. Having every subcommmand as its own page sorta sucks, and I don't like the idea of changing the CLI interface to fit it. Once the issue linked above is resolved I'd be happy to re-visit.
The completion is already useful though, so I'll merge that.
Sounds good to me. Thanks for working on this!
Thanks for getting it started :)