diff options
Diffstat (limited to 'remote/lib/report.sh')
-rw-r--r-- | remote/lib/report.sh | 15 |
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 +} |