hyprland-community / Hyprkeys

A simple, scriptable keybind retrieval utility for Hyprland [maintainer=none]
GNU General Public License v3.0
120 stars 6 forks source link

rewrite with cobra #6

Closed abs3ntdev closed 1 year ago

abs3ntdev commented 1 year ago

replaced getopt library with cobra. allows for tab completions and better flag parsing. and better framework for subcommand in the future (convert). added new makefile, edited goreleaser config file(should test that or rewrite it if you don't like)

if you or someone could test with --ctl that would be cool i don't have hyprland installed atm

NotAShelf commented 1 year ago

I'll do some testing later today.

NotAShelf commented 1 year ago

Sorry it took me too long to test.

Currently it looks like the flag system is working pretty good.

Sample output for go run . -btmv (--binds, --from-ctl, --markdown, --variables)

NotAShelf commented 1 year ago

@abs3ntdev unless if you have objections, I'll simply merge this - it looks good enough to me and if there are problems I can probably patch those real quick, now that I'm on my main machine

abs3ntdev commented 1 year ago

Seems fine 2 me