Viddy: A modern watch command. Time machine and pager etc.
github.com
github.com
I've been busy and haven't been very active, but I'm trying to resume maintenance. If you have any requests, please mention them in GitHub Issues.
> # TODO: this is ugly, doesn't print colours, is there a modern version?
I couldn't get watch to print colours and styles, with the -c switch and forcing colour output on the "inner" command.
Viddy just works and I've immediately created an alias to watch, and substituted all my scripted watch usage. The history feature looks interesting and potentially super-useful, and I'll hopefully remember that exists when I have need for such a thing. Thank you, and keep up the great work!
> watch -c -n 1 -- systemctl --user --state=failed
> watch -c -n 1 -- lfs --color yes -c +inodes_use_percent
I didn't actually look for colour output for systemctl (yeah.. bad debugging, kinda lazy, but it wasn't very important so I didn't give it too much time). I thought I'd try to reproduce for you and thought I should have a quick look at colour output for systemctl, and came up with:
> watch -c -n 1 -- SYSTEMD_COLORS=1 systemctl --user --state=failed
which works well.
The lfs example still does not; I suspect it's probably ignoring the color arg depending on its environment (I wonder if watch changes the env?- not to imply it would be wrong to do so if so).
I feel a bit bad for making it look like this was watch's fault, when it probably isn't. I'll dig into the lfs thing later.
alias watch='watch '
You probably want to do the same for sudo. alias [-p] [name[=value] ...]
[...] A trailing space in value causes the next word
to be checked for alias substitution when the alias is expanded.IIRC this doesn't work in bash.
Looks like a golang gopher getting eye drops while being injected with syringes.
I'm a bit annoyed at the trend of not having man pages though.
That used to be a lot easier when there was not that many tools out there. How many watch alternatives are there by now and how would you name them? watch, watchng, watch2?
[1]: https://pkg.go.dev/github.com/urfave/cli/v2#App.ToManWithSec...
I see its in nixpkgs - think I'll alias it to watch right now
It's not on-par with `watch` feature-wise. (-e and -g are not implemented)
Cool tool btw.
Usecase: storing timestamped proof of execution, automating metrics history
User story: "after feature X got implemented, deployment became twice as slow as we can see from the viddy logs".
Would be an interesting feature to see here for recording, and can then be played back/analysed by various other tools.
Thank you!
watch -d <command>
The rollback feature seems useful.