This repository has been archived by the owner on Feb 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Command init can be used to initialize the config file
- Loading branch information
Nick Jüttner
committed
May 22, 2018
1 parent
8bba6a0
commit f54b624
Showing
8 changed files
with
371 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
Use your [N26](https://n26.com) account via command-line | ||
|
||
Latest Version: v0.2 | ||
Latest Version: v0.3 | ||
|
||
## Features 🙌 | ||
|
||
|
@@ -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] | ||
|
@@ -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) | ||
|
Oops, something went wrong.