Watson
Watson copied to clipboard
Search or grep options for finding older frames
I am regularly restarting some frames, to continue working on a project with the same set of tags. In order to quickly find the frames I am looking for, I have added the following bash alias in my config:
alias wtgrep='/usr/bin/watson log --all | grep -i'
I then type wtgrep projectname
, get a frame id and then copy/paste like this: watson restart 5fc45af
.
I don't know if it would be useful to others to implement this as a full watson command (watson search
or watson grep
).
I have to confess that I had to update the display of the log
command, to left-align the project name (otherwise it was sometimes hard to read because of the padding).
As my tags become more and more through time and I want to reuse some of them, I use your alias approach to search for already existing tags:
alias wftags="watson tags | grep -i"
so this command:
$ wftags research
gives me:
research
research-intro-idea