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

    print "$report"
    echo
    finish
}