Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shortcuts #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
var listCmd = &cobra.Command{
Use: "list",
Short: "Display a list of items based on sub-command",
Aliases: []string{"l"},
}

func init() {
Expand Down
1 change: 1 addition & 0 deletions cmd/listAddresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var listAddressesCmd = &cobra.Command{
Use: "addresses",
Short: "List addresses",
Aliases: []string{"a"},
Run: listAddresses,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/listContacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var listContactsCmd = &cobra.Command{
Use: "contacts",
Short: "List contacts",
Aliases: []string{"c"},
Run: listContacts,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/listFeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
var listFeedCmd = &cobra.Command{
Use: "feed",
Short: "List recent feed items",
Aliases: []string{"f"},
Run: listFeed,
}

Expand Down
1 change: 1 addition & 0 deletions cmd/listGoals.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var listGoalsCmd = &cobra.Command{
Use: "goals",
Short: "List savings goals",
Aliases: []string{"g"},
Run: listGoals,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/listMandates.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var listMandatesCmd = &cobra.Command{
Use: "mandates",
Short: "List Direct Debit mandates",
Aliases: []string{"m"},
Run: listMandates,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/listPayments.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var listPaymentsCmd = &cobra.Command{
Use: "payments",
Short: "List payments",
Aliases: []string{"p"},
Run: listPayments,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/listTransactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
var listTransactionsCmd = &cobra.Command{
Use: "txns",
Short: "List recent transactions",
Aliases: []string{"t"},
Run: listTransactions,
}

Expand Down
1 change: 1 addition & 0 deletions cmd/listTransactionsCard.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var listTransactionsCardCmd = &cobra.Command{
Use: "card",
Short: "List card transactions",
Aliases: []string{"c"},
Run: listTransactionsCard,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/listTransactionsDD.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var listTransactionsDDCmd = &cobra.Command{
Use: "dd",
Short: "List direct-debit transactions",
Aliases: []string{"d"},
Run: listTransactionsDD,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/listTransactionsFPSIn.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var listTransactionsFPSInCmd = &cobra.Command{
Use: "fpsIn",
Short: "List inbound faster payments transactions",
Aliases: []string{"i"},
Run: listTransactionsFPSIn,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/listTransactionsFPSOut.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var listTransactionsFPSOutCmd = &cobra.Command{
Use: "fpsOut",
Short: "List outbound faster payments transactions",
Aliases: []string{"o"},
Run: listTransactionsFPSOut,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
var showCmd = &cobra.Command{
Use: "show",
Short: "Display a table of information based on sub-command",
Aliases: []string{"s"},
Long: `Show is a command that queries the Starling Bank API and displays a
table of information based on the associated sub-command. For example:

Expand Down
1 change: 1 addition & 0 deletions cmd/showAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
var showAccountCmd = &cobra.Command{
Use: "account",
Short: "Show an account summary",
Aliases: []string{"a"},
Run: showAccount,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/showBalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
var showBalanceCmd = &cobra.Command{
Use: "balance",
Short: "Show a summary of your balance",
Aliases: []string{"b"},
Run: showBalance,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/showCard.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
var showCardCmd = &cobra.Command{
Use: "card",
Short: "Show your card details",
Aliases: []string{"c"},
Run: showCard,
Args: cobra.NoArgs,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

var transferCmd = &cobra.Command{
Use: "transfer",
Aliases: []string{"t"},
Short: "Transfer money to/from a savings goal",
Args: cobra.MinimumNArgs(1),
}
Expand Down
1 change: 1 addition & 0 deletions cmd/transferFrom.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (

var transferFromCmd = &cobra.Command{
Use: "from",
Aliases: []string{"f"},
Short: "Transfer money from a savings goal",
Args: cobra.ExactArgs(2),
Run: transferFrom,
Expand Down
1 change: 1 addition & 0 deletions cmd/transferTo.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (

var transferToCmd = &cobra.Command{
Use: "to",
Aliases: []string{"t"},
Short: "Transfer money to a savings goal",
Args: cobra.ExactArgs(2),
Run: transferTo,
Expand Down