Skip to content

Commit

Permalink
README: update
Browse files Browse the repository at this point in the history
  • Loading branch information
remortalite committed Jun 26, 2024
1 parent b9d5202 commit 335ebe2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ show-coverage:

test:
poetry run pytest

publish:
poetry publish --dry-run

package-install:
python3 -m pip install --user dist/*.whl

gendiff:
poetry run gendiff


.PHONY: install lint test publish gendiff
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@
[![Test Coverage](https://api.codeclimate.com/v1/badges/9322302759fa8fdd9823/test_coverage)](https://codeclimate.com/github/remortalite/python-project-50/test_coverage)


# Генератор отличий

Программа позволяет пользователю получить различия двух json или yaml файлов, и вывести их на печать, либо в json формат.

# Установка и запуск

```bash
make install

make gendiff
```

Или можно установить программу в виртуальное окружение:

```bash
make install package-install publish

gendiff -h
```

# Аргументы командной строки

`filename{1,2}` -- пути до файлов

`-f`/`--format` [json/plain/stylish] -- формат вывода различий

# Example:

[![asciicast](https://asciinema.org/a/VqUBwDVgdD3umGZYx0qYxiPBa.svg)](https://asciinema.org/a/VqUBwDVgdD3umGZYx0qYxiPBa)

0 comments on commit 335ebe2

Please sign in to comment.