File tree Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Original file line number Diff line number Diff line change 33
44[ ![ Actions Status] ( https://github.com/Nurzhan2023/python-project-50/actions/workflows/hexlet-check.yml/badge.svg )] ( https://github.com/Nurzhan2023/python-project-50/actions )
55
6+
67[ ![ Python CI] ( https://github.com/Nurzhan2023/python-project-50/actions/workflows/python-ci.yml/badge.svg )] ( https://github.com/Nurzhan2023/python-project-50/actions/workflows/python-ci.yml )
78
89[ ![ Test Coverage] ( https://api.codeclimate.com/v1/badges/b23c691de6b894bf85ac/test_coverage )] ( https://codeclimate.com/github/Nurzhan2023/python-project-50/test_coverage )
910
11+ ## Description
12+
13+ Gendiff is a command line utility for comparing two configuration files. The tool analyzes the files and the differences in a human-readable format.
14+
15+ ## Utility features:
16+ - Supports different input formats: yaml, json
17+ - Generating a report in the form of plain text, stylish and json
18+
19+ ## Installation
20+
21+ To install, clone the ropository and install using uv:
22+
23+ ``` bash
24+ git clone https://github.com/Nurzhan2023/python-project-50.git
25+ cd python-project-50
26+ make install
27+ ```
28+
29+ ## Usage
30+ To display usage information:
31+
32+ ``` bash
33+ uv run gendiff -h
34+ ```
35+
36+ Command Line Options
37+
38+ ``` bash
39+ - h, --help - display this help message and exit
40+ - f FORMAT, --format FORMAT - set the output format(supported fotmats: plain, json, stylish)
41+ ```
42+
43+ Example of comparing two files:
44+
45+ ``` bash
46+ gendiff gendiff/tests/file1.json gendiff/tests/file2.json
47+ ```
48+
49+ The output will appear in the following format:
50+
51+ ``` bash
52+ {
53+ - follow: False
54+ host: hexlet.io
55+ - proxy: 123.124.53.22
56+ - timeout: 50
57+ + timeout: 20
58+ + verbose: True
59+ }
60+ ```
61+
62+ ## Development
63+
64+ TESTS
65+ To run test, use the following command:
66+ ``` bash
67+ make test-coverage
68+ ```
69+
70+ LINTER
71+ To check the code with the linter, execute:
72+
73+ ``` bash
74+ make lint
75+ ```
76+
77+ ## CI/CD
78+
79+ The project uses GitHub Actions for automated testing and linting. You can see status of the last commit at the top of this README
80+
1081[ ![ asciicast] ( https://asciinema.org/a/Pe196IZV1YWZEZojjxIbKHeU8.svg )] ( https://asciinema.org/a/Pe196IZV1YWZEZojjxIbKHeU8 )
You can’t perform that action at this time.
0 commit comments