Skip to content

Commit

Permalink
updating usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Thomazi Bonicontro committed Apr 17, 2018
1 parent d1442d7 commit 8d0d496
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ N26 password: ********
"id": "11111-1scasda-1112312-adasdasdasdas"
}
```

And `csv` for transactions.

You can run `n26 help` for usage description.

# Missing features
Expand Down
11 changes: 6 additions & 5 deletions cmd/n26/n26.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ type transactionWriter interface {

func main() {
app := cli.NewApp()
app.Version = "1.2.0"
app.UsageText = "n26 command [json|statement ID]"
app.Version = "1.3.0"
app.UsageText = "n26 command [json|csv|statement ID]"
app.Name = "N26"
app.Usage = "your N26 Bank financial information on the command line"
app.Author = "Guilherme Thomazi"
Expand Down Expand Up @@ -214,7 +214,7 @@ func main() {
},
{
Name: "transactions",
Usage: "list your past transactions",
Usage: "list your past transactions. Supports CSV output",
ArgsUsage: "[csv|json|table]",
Action: func(c *cli.Context) (err error) {
API := authentication()
Expand All @@ -226,8 +226,9 @@ func main() {
},
},
{
Name: "statements",
Usage: "your statements",
Name: "statements",
Usage: "your statements. Passing the statement ID as argument, downloads the PDF to the current directory",
ArgsUsage: "[statement ID]",
Action: func(c *cli.Context) error {
API := authentication()
dateRegex := regexp.MustCompile("statement-[0-9][0-9][0-9][0-9]-(1[0-2]|0[1-9]|\\d)")
Expand Down

0 comments on commit 8d0d496

Please sign in to comment.