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
- Host: GitHub
- URL: https://github.com/oieioi/caim
- Owner: oieioi
- License: mit
- Created: 2017-11-22T02:15:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T23:38:42.000Z (over 3 years ago)
- Last Synced: 2023-08-15T08:49:54.417Z (almost 3 years ago)
- Topics: cli-app, zaim
- Language: Ruby
- Homepage:
- Size: 869 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# caim
caim is a terminal based [Zaim](https://zaim.net/) client.

## 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).