mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 20:41:03 +01:00
minor update to current state
This commit is contained in:
42
README.md
42
README.md
@@ -20,13 +20,13 @@ But you're only interested in the NAME and STATUS columns. Here's how
|
|||||||
to do this with tablizer:
|
to do this with tablizer:
|
||||||
|
|
||||||
```
|
```
|
||||||
% kubectl get pods | ./tablizer
|
% kubectl get pods | tablizer
|
||||||
NAME(1) READY(2) STATUS(3) RESTARTS(4) AGE(5)
|
NAME(1) READY(2) STATUS(3) RESTARTS(4) AGE(5)
|
||||||
repldepl-7bcd8d5b64-7zq4l 1/1 Running 1 (69m ago) 5h26m
|
repldepl-7bcd8d5b64-7zq4l 1/1 Running 1 (69m ago) 5h26m
|
||||||
repldepl-7bcd8d5b64-m48n8 1/1 Running 1 (69m ago) 5h26m
|
repldepl-7bcd8d5b64-m48n8 1/1 Running 1 (69m ago) 5h26m
|
||||||
repldepl-7bcd8d5b64-q2bf4 1/1 Running 1 (69m ago) 5h26m
|
repldepl-7bcd8d5b64-q2bf4 1/1 Running 1 (69m ago) 5h26m
|
||||||
|
|
||||||
% kubectl get pods | ./tablizer -c 1,3
|
% kubectl get pods | tablizer -c 1,3
|
||||||
NAME(1) STATUS(3)
|
NAME(1) STATUS(3)
|
||||||
repldepl-7bcd8d5b64-7zq4l Running
|
repldepl-7bcd8d5b64-7zq4l Running
|
||||||
repldepl-7bcd8d5b64-m48n8 Running
|
repldepl-7bcd8d5b64-m48n8 Running
|
||||||
@@ -34,27 +34,28 @@ repldepl-7bcd8d5b64-q2bf4 Running
|
|||||||
```
|
```
|
||||||
|
|
||||||
Another use case is when the tabular output is so wide that lines are
|
Another use case is when the tabular output is so wide that lines are
|
||||||
being broken and the whole output is completely distorted. In such a
|
being broken and the whole output is completely distorted. In such a
|
||||||
case you can use the `-x` flag to get an output similar to `\x` in `psql`:
|
case you can use the `-o extended | -X` flag to get an output similar
|
||||||
|
to `\x` in `psql`:
|
||||||
|
|
||||||
```
|
```
|
||||||
% kubectl get pods | ./tablizer -x
|
% kubectl get pods | tablizer -X
|
||||||
NAME: repldepl-7bcd8d5b64-7zq4l
|
NAME: repldepl-7bcd8d5b64-7zq4l
|
||||||
READY: 1/1
|
READY: 1/1
|
||||||
STATUS: Running
|
STATUS: Running
|
||||||
RESTARTS: 1 (71m ago)
|
RESTARTS: 1 (71m ago)
|
||||||
AGE: 5h28m
|
AGE: 5h28m
|
||||||
|
|
||||||
NAME: repldepl-7bcd8d5b64-m48n8
|
NAME: repldepl-7bcd8d5b64-m48n8
|
||||||
READY: 1/1
|
READY: 1/1
|
||||||
STATUS: Running
|
STATUS: Running
|
||||||
RESTARTS: 1 (71m ago)
|
RESTARTS: 1 (71m ago)
|
||||||
AGE: 5h28m
|
AGE: 5h28m
|
||||||
|
|
||||||
NAME: repldepl-7bcd8d5b64-q2bf4
|
NAME: repldepl-7bcd8d5b64-q2bf4
|
||||||
READY: 1/1
|
READY: 1/1
|
||||||
STATUS: Running
|
STATUS: Running
|
||||||
RESTARTS: 1 (71m ago)
|
RESTARTS: 1 (71m ago)
|
||||||
AGE: 5h28m
|
AGE: 5h28m
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -63,11 +64,12 @@ Tablize can read one or more files or - if none specified - from STDIN.
|
|||||||
You can also specify a regex pattern to reduce the output:
|
You can also specify a regex pattern to reduce the output:
|
||||||
|
|
||||||
```
|
```
|
||||||
% kubectl get pods | ./tablizer q2bf4
|
% kubectl get pods | tablizer q2bf4
|
||||||
NAME(1) READY(2) STATUS(3) RESTARTS(4) AGE(5)
|
NAME(1) READY(2) STATUS(3) RESTARTS(4) AGE(5)
|
||||||
repldepl-7bcd8d5b64-q2bf4 1/1 Running 1 (69m ago) 5h26m
|
repldepl-7bcd8d5b64-q2bf4 1/1 Running 1 (69m ago) 5h26m
|
||||||
```
|
```
|
||||||
|
|
||||||
|
There are more output modes like org-mode (orgtbl) and markdown.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -106,6 +108,10 @@ https://github.com/TLINDEN/tablizer/blob/main/tablizer.pod
|
|||||||
Or if you cloned the repository you can read it this way (perl needs
|
Or if you cloned the repository you can read it this way (perl needs
|
||||||
to be installed though): `perldoc tablizer.pod`.
|
to be installed though): `perldoc tablizer.pod`.
|
||||||
|
|
||||||
|
If you have the binary installed, you can also read the man page with
|
||||||
|
this command:
|
||||||
|
|
||||||
|
tablizer --man
|
||||||
|
|
||||||
## Getting help
|
## Getting help
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user