blacknon / hwatch

A modern alternative to the watch command, records the differences in execution results and can check this differences at after.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FR: add "completion" subcommand

pataquets opened this issue · comments

Add a completion subcommand which would output an appropriate shell script to provide shell command completion.

No Rust programmer here, but looks like clap has already such a feature 🚀.

Not sure this is related but how to get completion similar to watch command. For example ->

  • watch systemctl status <tab-completion> shows completion for systemctl command.
    but hwatch systemctl status <tab-completion> dosen't work.

https://github.com/scop/bash-completion/blob/main/completions/watch can be used for reference.