Skip to content

Commit

Permalink
📜 docs: update readme
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Werneck <[email protected]>
  • Loading branch information
uelei committed Nov 5, 2023
1 parent e07c95b commit fe5e3bf
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ go install github.com/uelei/[email protected]
## Help

```bash
Usage: brl-rate-get <command>
brl-rate-get -help
Usage of brl-rate-get:
-get
To get yesterday closing currency
-range
To get a range of closing currency rates
```

## To use
Expand All @@ -26,6 +31,18 @@ To get yesterday close of a currency
```bash
brl-rate-get -get usd

2023/11/04 21:27:27 Found 5 records of price..
2023/11/04 21:27:27 Found 1 records of fechamento price..

____________________________________
|#######====================#######|
|# BRL USD #|
|# ==== #|
|# Buy: 4.8904 #|
|# 1,00 Sell: 4.8912 #|
|# #|
|##==============================##|
------------------------------------
```

## To use
Expand All @@ -35,4 +52,9 @@ To get a range of data from April first until April 10 use
```bash
brl-rate-get -range usd 2022-04-01 2022-04-10

2023/11/04 21:28:58 Found 30 records of price..
2023/11/04 21:28:58 Found 6 records of fechamento price..
2023/11/04 21:28:58 Writing a file.
File saved usd_brl_2022-04-01-2022-04-10.csv

```

0 comments on commit fe5e3bf

Please sign in to comment.