From 4492c5cfbe0e99666afed6780b674beaa670d1a1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 23 Nov 2018 09:27:06 -0800 Subject: [bash] Let's try to use emacs tty --- scripts/cqlmetrics | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/cqlmetrics (limited to 'scripts/cqlmetrics') diff --git a/scripts/cqlmetrics b/scripts/cqlmetrics new file mode 100755 index 0000000..db3db6a --- /dev/null +++ b/scripts/cqlmetrics @@ -0,0 +1,11 @@ +#!/bin/bash + +service=$1 + +if [ -z "${service}" ]; then + exit 1 +fi + +zone="${2:-smf1}" + +echo $(cql -z "${zone}" k "${service}" "sd.${service}" | fzf) -- cgit 1.4.1