Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Commit

Permalink
Command init can be used to initialize the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Jüttner committed May 22, 2018
1 parent 8bba6a0 commit f54b624
Show file tree
Hide file tree
Showing 8 changed files with 371 additions and 54 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/
11 changes: 11 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
builds:
- main: main.go
binary: n26
goos:
- windows
- darwin
- linux
goarch:
- amd64
archive:
format: tar.gz
200 changes: 200 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
branch = "master"
name = "github.com/olekukonko/tablewriter"

[[constraint]]
name = "github.com/spf13/viper"
version = "1.0.2"

[[constraint]]
name = "gopkg.in/alecthomas/kingpin.v2"
version = "2.2.6"

[prune]
go-tests = true
unused-packages = true
30 changes: 26 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Use your [N26](https://n26.com) account via command-line

Latest Version: v0.2
Latest Version: v0.3

## Features 🙌

Expand All @@ -16,7 +16,11 @@ Latest Version: v0.2

## Requirement

You only need to create a YAML file **n26.yml** in your ~/.config directory.
If you never used n26 cli before you can run n26 init to setup the configuration

or

you can create the YAML file **n26.yml** in your ~/.config directory by yourself:

```yaml
username: [email protected]
Expand All @@ -25,22 +29,40 @@ password: n26-password
## Installation
You could either use `go get github.com/njuettner/n26` or just download the binary release ([Windows](https://github.com/njuettner/n26/releases/download/v0.2/n26_windows_amd64.exe)/[Linux](https://github.com/njuettner/n26/releases/download/v0.2/n26_linux_amd64)/[Mac OS](https://github.com/njuettner/n26/releases/download/v0.2/n26_darwin_amd64))
You could either use `go get github.com/njuettner/n26` or just download the [latest release](https://github.com/njuettner/n26/releases/latest).

## How to use it 🤔

### Bash/ZSH Shell Completion

Add an additional statement to your bash_profile or zsh_profile:

```bash
eval "$(n26 --completion-script-bash)"
```

or

```bash
eval "$(n26 --completion-script-zsh)"
```

```bash
usage: n26 [<flags>] <command> [<args> ...]
A command-line to interact with your N26 bank account
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--help Show context-sensitive help (also try --help-long and --help-man).
--version Show application version.
Commands:
help [<command>...]
Show help.
init
Setting up the configuration to use N26 CLI
transactions [<amount>]
N26 latest transactions (Number by Default: 5)
Expand Down
Loading

0 comments on commit f54b624

Please sign in to comment.