Documentation ¶
Index ¶
- func CommandLogout(_ *cli.Context) error
- func ListCommand(ctx *cli.Context) error
- func LoginCommand(ctx *cli.Context) error
- func NewCommand(ctx *cli.Context) error
- func RegisterCommand(ctx *cli.Context) error
- func RemoveCommand(ctx *cli.Context) error
- func SummaryCommand(ctx *cli.Context) error
- func UpdateCommand(ctx *cli.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandLogout ¶
func CommandLogout(_ *cli.Context) error
CommandLogout remove locally stored credentials. Usage: groshi logout.
func ListCommand ¶
func ListCommand(ctx *cli.Context) error
ListCommand lists transactions in given period and optionally in given currency. Usage: grosh list [--uuid] [--currency=<CURRENCY>] [--end-time=<TIME>] <START-TIME>.
func LoginCommand ¶ added in v0.1.3
func LoginCommand(ctx *cli.Context) error
LoginCommand obtains authorization token and stores it aside with server URL in a file. Usage: grosh login <URL> [USERNAME] [PASSWORD].
func NewCommand ¶
func NewCommand(ctx *cli.Context) error
NewCommand creates a new transaction. Usage: grosh new [--timestamp=<TIME>] [--description=<TEXT>] <AMOUNT> <CURRENCY>.
func RegisterCommand ¶
func RegisterCommand(ctx *cli.Context) error
RegisterCommand creates a new groshi user with provided credentials. Usage: grosh register <URL> [USERNAME].
func RemoveCommand ¶
func RemoveCommand(ctx *cli.Context) error
RemoveCommand removes transaction. Usage: grosh remove <UUID>.
func SummaryCommand ¶
func SummaryCommand(ctx *cli.Context) error
SummaryCommand show summary of transactions for given period in given currency. Usage: grosh summary [--end-time=<END-TIME>] <START-TIME> <CURRENCY>.
func UpdateCommand ¶
func UpdateCommand(ctx *cli.Context) error
UpdateCommand updates transaction. Usage: grosh update [--amount=AMOUNT] [--currency=CURRENCY] [--description=DESCRIPTION] [--timestamp=TIME] <UUID>.
Types ¶
This section is empty.