From f9d4402a9dd0fbe850cc2031fdcb35a7a33d14c9 Mon Sep 17 00:00:00 2001 From: Guilherme Thomazi Bonicontro Date: Thu, 19 Jul 2018 17:15:18 +0200 Subject: [PATCH] adding version constant --- cmd/n26/n26.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/n26/n26.go b/cmd/n26/n26.go index bdfc26f..fa07cc6 100644 --- a/cmd/n26/n26.go +++ b/cmd/n26/n26.go @@ -14,6 +14,10 @@ import ( "github.com/urfave/cli" ) +const ( + appVersion = "1.4.2" +) + func check(e error) { if e != nil { panic(e) @@ -33,7 +37,7 @@ func authentication() (*n26.Client, error) { check(err) password = string(maskedPass) } - return n26.NewClient(n26.Auth{username, password}) + return n26.NewClient(n26.Auth{UserName: username, Password: password}) } // Interface for generic data writer that has a header and data table e.g. table writer and csv writer @@ -46,7 +50,7 @@ type transactionWriter interface { func main() { app := cli.NewApp() - app.Version = "1.4.1" + app.Version = appVersion app.UsageText = "n26 command [json|csv|statement ID]" app.Name = "N26" app.Usage = "your N26 Bank financial information on the command line"