dominikbraun / timetrace

A simple CLI for tracking your working time.
Apache License 2.0
665 stars 75 forks source link

bash/zsh/fish shell auto-completions #135

Open Kevin-Mok opened 3 years ago

Kevin-Mok commented 3 years ago

Desired Behavior

timetrace completion [bash|zsh|fish] should be able to generate a completion file for me in that respective shell.

Current Behavior

This is not an existing feature that I am aware of.

Implementation

Cobra can generate shell completions.

Personal Notes

I use the fish shell and would like timetrace completion fish to generate a timetrace.fish file that I can put in my ~/config/fish/completions/ dir to get fish completions. I've implemented this feature for the Kogito CLI before, but the kogito completion command was already there, and I just added the fish value on top of the existing bash/zsh ones.

Kevin-Mok commented 3 years ago

@dominikbraun This can be assigned to me, but I'm not sure when I'll get around to it. If anyone else wants to take it on, that'd be cool too.

Kevin-Mok commented 3 years ago

Also I guess enhancement label can be applied?

dominikbraun commented 3 years ago

@Kevin-Mok Feel free to work on it when it suits you 😄