summaryrefslogtreecommitdiffstats
path: root/remote/lib/report.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-25 03:49:35 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-25 03:49:35 +0200
commitc8c277200169dfadf88dd176e5c056967550e059 (patch)
treeec1a519ef550c2206c7863503627388e343778a3 /remote/lib/report.sh
parent5e6c83d51d0f52ecb464f137ad68f0bd1a83f5e4 (diff)
downloadconky-c8c277200169dfadf88dd176e5c056967550e059.tar.gz
conky-c8c277200169dfadf88dd176e5c056967550e059.tar.bz2
conky-c8c277200169dfadf88dd176e5c056967550e059.tar.xz
conky-c8c277200169dfadf88dd176e5c056967550e059.zip
Add remote services
Diffstat (limited to 'remote/lib/report.sh')
-rw-r--r--remote/lib/report.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/remote/lib/report.sh b/remote/lib/report.sh
new file mode 100644
index 0000000..a5c16d4
--- /dev/null
+++ b/remote/lib/report.sh
@@ -0,0 +1,15 @@
+function standart_report {
+ local generator="$1"
+ local filter="${2:-print_table | decorate_table}"
+ {
+
+ #check_darksoft 12>/dev/fd/12 | print_table #| column -t -o " "
+ eval "$generator 12>/dev/fd/12 | $filter"
+ report=$(cat<&12)
+ } 12<<EOF
+EOF
+
+ print "$report"
+ echo
+ finish
+}