geneos-toolkit 0.4.2

Rust library for building Geneos Toolkit compatible applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use geneos_toolkit::prelude::*;

fn main() -> ! {
    // Create a new Dataview that contains multiple headlines in addition to the main
    // rows and columns.
    //
    // Note that the order of the headlines will be the same as the order in which they are
    // added to the Dataview.
    let dataview = Dataview::builder()
        .set_row_header("Process")
        .add_headline("TotalProcesses", "50")
        .add_headline("TotalCache", "300")
        .add_headline("TotalMemory", "1000")
        .add_value("Process 1", "Status", "OK")
        .build();

    print_result_and_exit(dataview)
}