2019-11-30 12:48:23 +01:00
|
|
|
# get
|
|
|
|
|
|
|
|
Open given cells as text.
|
|
|
|
|
|
|
|
Syntax: `get ...args`
|
|
|
|
|
|
|
|
### Parameters:
|
2020-03-13 18:23:41 +01:00
|
|
|
|
2019-11-30 12:48:23 +01:00
|
|
|
* `args`: optionally return additional data by path
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2020-03-13 18:23:41 +01:00
|
|
|
If we run `sys` we receive a table which contains tables itself:
|
2019-11-30 12:48:23 +01:00
|
|
|
|
|
|
|
```shell
|
|
|
|
> sys
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
host │ cpu │ disks │ mem │ temp │ net │ battery
|
2019-11-30 12:48:23 +01:00
|
|
|
────────────────────────────────────────┼────────────────────────────────────┼────────────────┼───────────────────────────────────────┼────────────────┼────────────────┼────────────────
|
2020-03-13 18:23:41 +01:00
|
|
|
[row arch hostname name release uptime │ [row cores current ghz max ghz min │ [table 7 rows] │ [row free swap free swap total total] │ [table 6 rows] │ [table 3 rows] │ [table 1 rows]
|
|
|
|
users] │ ghz] │ │ │ │ │
|
2019-11-30 12:48:23 +01:00
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━
|
|
|
|
```
|
|
|
|
|
2020-03-13 18:23:41 +01:00
|
|
|
To access one of the embedded tables we can use the `get` command
|
2019-11-30 12:48:23 +01:00
|
|
|
|
|
|
|
```shell
|
|
|
|
> sys | get cpu
|
|
|
|
━━━━━━━┯━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
cores │ current ghz │ min ghz │ max ghz
|
2019-11-30 12:48:23 +01:00
|
|
|
───────┼───────────────────┼────────────────────┼───────────────────
|
2020-03-13 18:23:41 +01:00
|
|
|
4 │ 1.530000000000000 │ 0.5000000000000000 │ 3.500000000000000
|
2019-11-30 12:48:23 +01:00
|
|
|
━━━━━━━┷━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━
|
|
|
|
```
|
|
|
|
```shell
|
|
|
|
> sys | get battery
|
|
|
|
━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
vendor │ model │ mins to full
|
2019-11-30 12:48:23 +01:00
|
|
|
────────┼──────────┼──────────────────
|
2020-03-13 18:23:41 +01:00
|
|
|
SMP │ L14M2P21 │ 16.7024000000000
|
2019-11-30 12:48:23 +01:00
|
|
|
━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━
|
|
|
|
```
|
|
|
|
|
|
|
|
There's also the ability to pass multiple parameters to `get` which results in an output like this
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sys | get cpu battery
|
|
|
|
━━━┯━━━━━━━┯━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
# │ cores │ current ghz │ min ghz │ max ghz │ vendor │ model │ mins to full
|
2019-11-30 12:48:23 +01:00
|
|
|
───┼───────┼───────────────────┼────────────────────┼───────────────────┼────────┼──────────┼───────────────────
|
2020-03-13 18:23:41 +01:00
|
|
|
0 │ 4 │ 1.500000000000000 │ 0.5000000000000000 │ 3.500000000000000 │ │ │
|
|
|
|
1 │ │ │ │ │ SMP │ L14M2P21 │ 16.94503000000000
|
2019-11-30 12:48:23 +01:00
|
|
|
━━━┷━━━━━━━┷━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━
|
|
|
|
```
|