commands

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL