mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
doc update
This commit is contained in:
@ -43,7 +43,7 @@ For example:
|
|||||||
good day 12345
|
good day 12345
|
||||||
hi there abc def
|
hi there abc def
|
||||||
|
|
||||||
etc.
|
etc...
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
@ -65,11 +65,45 @@ Schema:
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ asciitable | jc --asciitable -p
|
$ echo '
|
||||||
[]
|
> ╒══════════╤═════════╤════════╕
|
||||||
|
> │ foo │ bar │ baz │
|
||||||
|
> ╞══════════╪═════════╪════════╡
|
||||||
|
> │ good day │ │ 12345 │
|
||||||
|
> ├──────────┼─────────┼────────┤
|
||||||
|
> │ hi there │ abc def │ 3.14 │
|
||||||
|
> ╘══════════╧═════════╧════════╛' | jc --asciitable -p
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"foo": "good day",
|
||||||
|
"bar": null,
|
||||||
|
"baz": "12345"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"foo": "hi there",
|
||||||
|
"bar": "abc def",
|
||||||
|
"baz": "3.14"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
$ asciitable | jc --asciitable -p -r
|
|
||||||
[]
|
$ echo '
|
||||||
|
> foo bar baz
|
||||||
|
> --------- -------- ------
|
||||||
|
> good day 12345
|
||||||
|
> hi there abc def' | jc --asciitable -p
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"foo": "good day",
|
||||||
|
"bar": null,
|
||||||
|
"baz": "12345"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"foo": "hi there",
|
||||||
|
"bar": "abc def",
|
||||||
|
"baz": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
<a id="jc.parsers.asciitable.parse"></a>
|
<a id="jc.parsers.asciitable.parse"></a>
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ Examples:
|
|||||||
{
|
{
|
||||||
"foo": "good day\nmate",
|
"foo": "good day\nmate",
|
||||||
"bar": "12345",
|
"bar": "12345",
|
||||||
"baz_buz": ""
|
"baz_buz": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"foo": "hi there",
|
"foo": "hi there",
|
||||||
@ -87,7 +87,7 @@ Examples:
|
|||||||
{
|
{
|
||||||
"foo": "good day\nmate",
|
"foo": "good day\nmate",
|
||||||
"bar": "12345",
|
"bar": "12345",
|
||||||
"baz_buz": ""
|
"baz_buz": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"foo": "hi there",
|
"foo": "hi there",
|
||||||
|
@ -38,7 +38,7 @@ For example:
|
|||||||
good day 12345
|
good day 12345
|
||||||
hi there abc def
|
hi there abc def
|
||||||
|
|
||||||
etc.
|
etc...
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
@ -60,11 +60,45 @@ Schema:
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ asciitable | jc --asciitable -p
|
$ echo '
|
||||||
[]
|
> ╒══════════╤═════════╤════════╕
|
||||||
|
> │ foo │ bar │ baz │
|
||||||
|
> ╞══════════╪═════════╪════════╡
|
||||||
|
> │ good day │ │ 12345 │
|
||||||
|
> ├──────────┼─────────┼────────┤
|
||||||
|
> │ hi there │ abc def │ 3.14 │
|
||||||
|
> ╘══════════╧═════════╧════════╛' | jc --asciitable -p
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"foo": "good day",
|
||||||
|
"bar": null,
|
||||||
|
"baz": "12345"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"foo": "hi there",
|
||||||
|
"bar": "abc def",
|
||||||
|
"baz": "3.14"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
$ asciitable | jc --asciitable -p -r
|
|
||||||
[]
|
$ echo '
|
||||||
|
> foo bar baz
|
||||||
|
> --------- -------- ------
|
||||||
|
> good day 12345
|
||||||
|
> hi there abc def' | jc --asciitable -p
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"foo": "good day",
|
||||||
|
"bar": null,
|
||||||
|
"baz": "12345"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"foo": "hi there",
|
||||||
|
"bar": "abc def",
|
||||||
|
"baz": null
|
||||||
|
}
|
||||||
|
]
|
||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
from typing import List, Dict
|
from typing import List, Dict
|
||||||
|
@ -58,7 +58,7 @@ Examples:
|
|||||||
{
|
{
|
||||||
"foo": "good day\nmate",
|
"foo": "good day\nmate",
|
||||||
"bar": "12345",
|
"bar": "12345",
|
||||||
"baz_buz": ""
|
"baz_buz": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"foo": "hi there",
|
"foo": "hi there",
|
||||||
@ -82,7 +82,7 @@ Examples:
|
|||||||
{
|
{
|
||||||
"foo": "good day\nmate",
|
"foo": "good day\nmate",
|
||||||
"bar": "12345",
|
"bar": "12345",
|
||||||
"baz_buz": ""
|
"baz_buz": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"foo": "hi there",
|
"foo": "hi there",
|
||||||
|
Reference in New Issue
Block a user