Matheus

A bunch of CLI tools I made for my own use.

Installation

$ gem install matheus

Usage

alert-me

$ alert-me 'sleep 1 && echo "Done!"'
Done!
# plays a sound after the command finishes

date-of-last

Prints the date of the last week day.

$ date-of-last monday
2024-02-12

$ date-of-last sun
2024-02-11

q

It expects a OPENAI_API_KEY environment variable to be set. It will try to load it from a .env file at ~/.env.

$ q "What is the capital of France?"
The capital of France is **Paris**

puts

It evaluates the given Ruby code and prints the result. Active Support is available.

$ puts 10.days.ago
2024-08-17 15:50:11 -0300

Contributing

Probably not accepting contributions at the moment, but feel free to open an issue if you have any ideas or suggestions.

License

The gem is available as open source under the terms of the MIT License.