diff --git a/README.md b/README.md index 274289d..e97ee55 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cmd/n26/n26.go b/cmd/n26/n26.go index e484b2a..4ecdc8a 100644 --- a/cmd/n26/n26.go +++ b/cmd/n26/n26.go @@ -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" @@ -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() @@ -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)")