Montana / heat-cli

Heat is a Swiss army knife of fun in the CLI
1 stars 0 forks source link

Build Status

heat-cli

Heat is a collection of fun tools that have nothing to do with one another. It's a Swiss army knife of fun in the CLI, you can look busy, check the weather, ping an API, and a lot more all in one central shell script. Functionality will be added.

heat-cli

Usage

Practical usage of Heat is to clone this repo, install heat by running chmod u+x heat. Then place Heat in your /usr/local/bin directory.

Manpage

So you'd run heat -z to get the weather as an example. This is what heat -z looks like:

Screen Shot 2022-07-20 at 4 51 05 PM

Travis CI

Here's the current .travis.yml file I've created for my project called heat-cli:

language: shell 
before_script: 
  - chmod u+x heat 
  - sudo chmod +x /usr/local/bin
  - sudo mv heat /usr/local/bin
script: 
  - heat -v 
  - heat -t # Fetches older versions of the Linux kernel.
  - heat -c 
  - heat -z

In the above .travis.yml I've instructed Travis to change permissions to some directories, move the file entitled heat, which is heat-cli, over to /usr/local/bin. You'll then notice I run Heat by just running some test commands, such as:

heat -v 
heat -t
heat -c 
heat -z

This is what it will look like if your build is successful, it's going to call a weather API and spit the results out in a VM:

Screen Shot 2022-07-21 at 6 10 06 PM

Using the LookBusy function in Heat is quite simple. Just add heat -t, this will make you look busy if someone looks at your monitor and you're in the CLI. You'll need to set a sleep flag, so this ultimately gets cancelled, if you don't Travis will end up getting stuck. So just add something like sleep 20.

Conclusion

Turn up the heat, and try Heat out yourself.

If you have any questions about Heat please email me at montana@linux.com.