summaryrefslogtreecommitdiff
path: root/wstart
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2021-04-27 19:34:35 +0500
committerAnton Bobov <abobov@gmail.com>2021-04-27 19:34:35 +0500
commitabc2d412cbd393bf715d13d913a707305c2233d8 (patch)
tree70c51e3768a0b0dd476dfffe2b1f1535b6cf771e /wstart
parent5ca89d1e147e96a2ea28a33845b18fc4648dd6ad (diff)
Watson helpers.
Diffstat (limited to 'wstart')
-rwxr-xr-xwstart14
1 files changed, 14 insertions, 0 deletions
diff --git a/wstart b/wstart
new file mode 100755
index 0000000..75c2918
--- /dev/null
+++ b/wstart
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+set -e
+
+read -p 'Enter project name (press Enter to select): '
+if [[ -z $REPLY ]] ; then
+ PROJECT=$(watson projects | fzf --reverse --tac --no-sort)
+else
+ PROJECT="$REPLY"
+fi
+TAGS=$(watson tags | fzf --reverse --multi | awk '{print "+" $0}' | paste -sd " " -)
+
+watson stop >/dev/null 2>&1 || true
+watson start $PROJECT $TAGS