Skip to content

Commit

Permalink
adding version constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Thomazi Bonicontro committed Jul 19, 2018
1 parent fa19cde commit f9d4402
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/n26/n26.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import (
"github.com/urfave/cli"
)

const (
appVersion = "1.4.2"
)

func check(e error) {
if e != nil {
panic(e)
Expand All @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit f9d4402

Please sign in to comment.