a really lazy fetch tool for maitea written in go
also contains a little api wrapper for maitea too :D
variable | description | default | environment variable | cli argument |
---|---|---|---|---|
access token | token for your MaiTea account (REQUIRED) | N/A |
MAITEA_TOKEN |
--access-token -a |
logo size | size of the ASCII logo (zero or negative disables) | 20 |
MAITEA_LOGO_SIZE |
--logo-size -l |
score count | amount of scores to display (max 12) | 4 |
MAITEA_SCORE_COUNT |
--score-count -s |
config file | json file to store config variables | refer to below | MAITEA_CONFIG_FILE |
--config-file -c |
obtained from os.UserConfigDir
platform | location |
---|---|
Windows | %APPDATA%/maifetch.json |
Linux | $XDG_CONFIG_HOME/maifetch.json ~/.config/maifetch.json |
OSX | ~/Library/Application Support/maifetch.json |
- clone the project with
git clone https://github.com/HutchyBen/maifetch
- build with
go build maifetch/cmd/maifetch
- run outputted executable ensuring access token is either
- in config file
- in environment variables
- in command line options
- test it properly
- add friendly errors