An open API service indexing awesome lists of open source software.

https://github.com/oieioi/caim

πŸ’° Zaim (https://zaim.net) cli client
https://github.com/oieioi/caim

cli-app zaim

Last synced: 8 months ago
JSON representation

πŸ’° Zaim (https://zaim.net) cli client

Awesome Lists containing this project

README

          

# caim

caim is a terminal based [Zaim](https://zaim.net/) client.

![caim-pay](/caim-pay.gif)

## Installation

### Dependencies

- ruby
- bundler

### Install

Clone this repository and

$ bundle install
$ echo alias caim=\"BUNDLE_GEMFILE=`pwd`/Gemfile bundle exec ruby `pwd`/bin/caim\" >> ~/.bash_profile
$ source ~/.bash_profile

## Usage

OAuth

$ caim login

Get list

$ caim ls
$ caim ls 2017-11
$ caim ls --format json

Get summary

$ caim sum --category-summary
$ caim sum --genre-summary

Get accounts, categories and genres with index

$ caim account
$ caim category
$ caim genre

Pay payment

```
$ caim pay 150 --yes \
--genre genre_index \
--account account_index \
--date 2017-11-23 \
--memo コカコーラ \
--place セブンむレブン一η•ͺη”ΊεΊ—

# Interactively
$ caim pay -i
```

Earn income

```
$ caim earn 200000 \
--category category_index \
--account account_index \
--memo 11ζœˆεˆ†η΅¦δΈŽ \
--place γƒγ‚€γƒˆε…ˆ \
--date 2017-11-25

# Interactively
$ caim earn -i
```

Remove money

$ caim rm money_id

transfer money

$ caim mv 20000 --from-account from_account_index --to-account to_account_index
$ caim mv 20000 -i

## TODO

Update money

$ caim update money_id

filter list

$ caim ls --category 食費

format CSV

$ caim ls --all --format csv

Update master data

$ caim category update
$ caim genre update
$ caim account update

total amounts of each account

$ caim account

貑布 2000
口座 20
γ‚―γƒ¬γ‚Έγƒƒγƒˆ -10000
...

And publish as gem !

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).