hawkins / watchdog

⚠️ Watch filesystem for changes and then run a command
2 stars 0 forks source link

Specify paths at the end implicitly #6

Closed hawkins closed 5 years ago

hawkins commented 5 years ago

This would be spectacular for globs, i.e:

watchdog "echo 'hi'" src/*.rs

which zsh and co translate to

watchdog "echo 'hi'" src/a.rs src/b.rs src/main.rs ...

I would like to be able to pick up any trailing arguments after the command and not supported by a flag as being paths, such that we can use the shell's glob we're already familiar with in order to expand paths predictably, without the need for -g today

hawkins commented 5 years ago

note it wound up requiring -- before paths, but.... whatever. that's fine imo