Skip to content

Commit 79d0ade

Browse files
akbakb
authored andcommitted
Fix tests
1 parent 737d84e commit 79d0ade

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/usage.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Usage
33
=====
44

55

6-
``csv``
7-
=======
6+
``read-csv``
7+
==============
88

99
Read a csv file into Python dicts. Given a csv like this:
1010

@@ -19,7 +19,7 @@ try:
1919

2020
.. code-block:: bash
2121
22-
$ mario csv <<EOF
22+
$ mario read-csv <<EOF
2323
name,age
2424
Alice,21
2525
Bob,25
@@ -43,23 +43,23 @@ Create json objects with a simple syntax.
4343
{"name": "Alice", "age": 21, "hobbies": ["running"]}
4444
4545
46-
``jsonl``
47-
=========
46+
``read-jsonl``
47+
=================
4848
4949
Read line-separated json.
5050
5151
.. code-block:: bash
5252
53-
$ mario jsonl <<< $'{"a":1, "b":2}\n{"a": 5, "b":9}'
53+
$ mario read-jsonl <<< $'{"a":1, "b":2}\n{"a": 5, "b":9}'
5454
{'a': 1, 'b': 2}
5555
{'a': 5, 'b': 9}
5656
5757
58-
The new command ``jsonl`` can be used in pipelines as well. To get the maximum value in a sequence of jsonlines objects:
58+
The new command ``read-jsonl`` can be used in pipelines as well. To get the maximum value in a sequence of jsonlines objects:
5959
6060
.. code-block:: bash
6161
62-
$ mario jsonl map 'x["a"]' apply max <<< $'{"a":1, "b":2}\n{"a": 5, "b":9}'
62+
$ mario read-jsonl map 'x["a"]' apply max <<< $'{"a":1, "b":2}\n{"a": 5, "b":9}'
6363
5
6464
6565

src/mario_addons/plugins/addons.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,4 @@ options={code="toml.dumps"}
185185
invocation = ["stack", "json.loads", "write-toml"]
186186
input = '''{"x": 1}
187187
'''
188-
output = """x = 1\n"""
188+
output = """x = 1\n\n"""

0 commit comments

Comments
 (0)