ironbar icon indicating copy to clipboard operation
ironbar copied to clipboard

feat: add man pages and shell completions

Open donovanglover opened this issue 1 year ago • 1 comments

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

donovanglover avatar Jul 30 '24 18:07 donovanglover

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.

donovanglover avatar Aug 10 '24 23:08 donovanglover

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.

donovanglover avatar Nov 07 '24 17:11 donovanglover

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.

JakeStanger avatar Nov 07 '24 18:11 JakeStanger

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.

JakeStanger avatar Dec 28 '24 15:12 JakeStanger

Sounds good to me. Thanks for working on this!

donovanglover avatar Dec 28 '24 19:12 donovanglover

Thanks for getting it started :)

JakeStanger avatar Dec 29 '24 00:12 JakeStanger