From 5ddaf4ea2ab1fc68da5a97222df8f291d1c78886 Mon Sep 17 00:00:00 2001 From: DSungatulin Date: Mon, 19 Feb 2024 22:41:33 +0600 Subject: [PATCH] modify README.md --- README.md | 14 +++++++------- demo.cast | 16 ---------------- tests/test_parser.py | 2 +- 3 files changed, 8 insertions(+), 24 deletions(-) delete mode 100644 demo.cast diff --git a/README.md b/README.md index 49ad231..49c05d7 100644 --- a/README.md +++ b/README.md @@ -52,22 +52,22 @@ gendiff [-f FORMAT] first_file second_file ## Usage examples ### Help view -![](https://github.com/DSungatulin/python-project-50/work_examples/blob/main/help_view_example.gif) +![](https://github.com/DSungatulin/python-project-50/blob/main/work_examples/help_view_example.gif) ### Flat JSON file comparison -![](https://github.com/DSungatulin/python-project-50/work_examples/blob/main/flat_json_comparison_example.gif) +![](https://github.com/DSungatulin/python-project-50/blob/main/work_examples/flat_json_comparison_example.gif) ### Flat YAML file comparison -![](https://github.com/DSungatulin/python-project-50/work_examples/blob/main/flat_yaml_comparison_example.gif) +![](https://github.com/DSungatulin/python-project-50/blob/main/work_examples/flat_yaml_comparison_example.gif) ### Nested JSON file comparison -![](https://github.com/DSungatulin/python-project-50/work_examples/blob/main/nested_json_comparison_example.gif) +![](https://github.com/DSungatulin/python-project-50/blob/main/work_examples/nested_json_comparison_example.gif) ### Nested YAML file comparison -![](https://github.com/DSungatulin/python-project-50/work_examples/blob/main/nested_yaml_comparison_example.gif) +![](https://github.com/DSungatulin/python-project-50/blob/main/work_examples/nested_yaml_comparison_example.gif) ### Plain output format -![](https://github.com/DSungatulin/python-project-50/work_examples/blob/main/plain_format_example.gif) +![](https://github.com/DSungatulin/python-project-50/blob/main/work_examples/plain_format_example.gif) ### JSON output format -![](https://github.com/DSungatulin/python-project-50/work_examples/blob/main/json_format_example.gif) +![](https://github.com/DSungatulin/python-project-50/blob/main/work_examples/json_format_example.gif) diff --git a/demo.cast b/demo.cast deleted file mode 100644 index adb1645..0000000 --- a/demo.cast +++ /dev/null @@ -1,16 +0,0 @@ -{"version": 2, "width": 177, "height": 15, "timestamp": 1708358532, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}} -[0.012225, "o", "\u001b[?2004h\u001b]0;torak@DESKTOP-NL2MAM7: ~/python-project-50/python-project-50\u0007\u001b[01;32mtorak@DESKTOP-NL2MAM7\u001b[00m:\u001b[01;34m~/python-project-50/python-project-50\u001b[00m$ "] -[0.680928, "o", "g"] -[1.152618, "o", "e"] -[1.596505, "o", "n"] -[1.985495, "o", "d"] -[2.206391, "o", "i"] -[2.569938, "o", "f"] -[2.753746, "o", "f"] -[3.395229, "o", " "] -[3.716323, "o", "-"] -[4.001431, "o", "h"] -[4.627353, "o", "\r\n\u001b[?2004l\r"] -[4.661671, "o", "usage: gendiff [-h] [-f {stylish,plain,json}] first_file second_file\r\n\r\nCompares two configuration files and shows a difference.\r\n\r\npositional arguments:\r\n first_file\r\n second_file\r\n\r\noptions:\r\n -h, --help show this help message and exit\r\n -f {stylish,plain,json}, --format {stylish,plain,json}\r\n set format of output (default: 'stylish')\r\n"] -[4.670867, "o", "\u001b[?2004h\u001b]0;torak@DESKTOP-NL2MAM7: ~/python-project-50/python-project-50\u0007\u001b[01;32mtorak@DESKTOP-NL2MAM7\u001b[00m:\u001b[01;34m~/python-project-50/python-project-50\u001b[00m$ "] -[6.609593, "o", "\u001b[?2004l\r\r\nexit\r\n"] diff --git a/tests/test_parser.py b/tests/test_parser.py index 4292e54..b1ede92 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -1,5 +1,5 @@ import pytest -from gendiff.parser import parse_file, determine_file_format +from gendiff.parser import determine_file_format def test_determine_file_format():