2024-08-22 18:20:02 +02:00
|
|
|
# c4mate - command line client for the C4 mukas instance (aka Mate-Pad)
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
2024-08-26 10:33:47 +02:00
|
|
|
* lua >= 5.3
|
2024-08-22 18:20:02 +02:00
|
|
|
* curl
|
|
|
|
* sed
|
|
|
|
* date
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2024-08-26 10:33:47 +02:00
|
|
|
If no username is given via the "-u" command line flag, c4mate will use the
|
|
|
|
value of the $USER environment variable as username.
|
|
|
|
|
|
|
|
Usage: c4mate [-u <user>] [ <query> | -b <id> | -l | +/-<amount> | -g <amount> <user> [<reason>]]
|
2024-08-22 18:20:02 +02:00
|
|
|
Display current balance:
|
|
|
|
c4mate
|
|
|
|
Find and buy item (interactive):
|
|
|
|
c4mate <query>
|
2024-08-28 13:06:34 +02:00
|
|
|
Buy by item id (non-interactive, special id '0' will re-buy last item in log):
|
2024-08-22 18:20:02 +02:00
|
|
|
c4mate -b|--buy <id>
|
|
|
|
Show log:
|
2024-08-27 22:40:09 +02:00
|
|
|
c4mate -l|--log [<size>]
|
2024-08-22 18:20:02 +02:00
|
|
|
Add or subtract credits:
|
|
|
|
c4mate <difference>
|
|
|
|
Give credits:
|
|
|
|
c4mate -g <amount> <user> [<reason>]
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
CC0
|
|
|
|
|