summaryrefslogtreecommitdiffstats
path: root/remote/lib/report.sh
blob: a5c16d442232608efc22ad55df568c3fe18f44a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}