Skip to content

Commit fc16924

Browse files
committed
Finish gendiff
1 parent aa95c13 commit fc16924

File tree

10 files changed

+208
-526
lines changed

10 files changed

+208
-526
lines changed

README.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,47 @@
1-
# Gendiff
1+
# go-project-244
22

3-
### Hexlet tests and linter status:
3+
## Description
4+
This cli application compares two json or yml files and shows the difference in stylish, plain and json formats
5+
6+
## Hexlet tests and linter status:
47
[![Actions Status](https://github.com/alexvitayu/go-project-244/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/alexvitayu/go-project-244/actions)
58

6-
### SonarQube Standard badge:
9+
## SonarQube Standard badge:
710
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=alexvitayu_go-project-244&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=alexvitayu_go-project-244)
811

9-
### Example of app execution - follow the link:
12+
## Build and setup
13+
```ch
14+
git clone https://github.com/alexvitayu/go-project-244.git
15+
```
16+
```ch
17+
cd go-project-244
18+
```
19+
```ch
20+
make build
21+
```
22+
## Run linter
23+
```ch
24+
make lint
25+
```
26+
## Run tests
1027
```ch
11-
https://asciinema.org/a/sXebIOdYUQdNi131mai8DUjFG
28+
make test
1229
```
30+
## Install
31+
### for make install make sure that you have GOBIN set up in your PATH.
32+
### To discover this just run 'echo $PATH'
33+
```ch
34+
make install
35+
```
36+
## Help
37+
```ch
38+
gendiff -h --help
39+
```
40+
## Run the application from the terminal
41+
```ch
42+
gendiff
43+
```
44+
## Example of app execution - follow the link:
45+
```ch
46+
https://asciinema.org/a/iQ2yWhvlLSVuqlCvIJR5FzYoD
47+
```

cmd/gendiff/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ func main() {
2020
Name: "format",
2121
Aliases: []string{"f"},
2222
Value: "stylish",
23-
Usage: "output format"},
23+
Usage: `output formats:
24+
-f=stylish
25+
-f=plain
26+
-f=json`},
2427
},
2528
Action: func(ctx context.Context, cmd *cli.Command) error {
2629
var path1 string

diff.json

Lines changed: 0 additions & 292 deletions
This file was deleted.

0 commit comments

Comments
 (0)