Kapow is a Bash library management tool. You might be asking yourself "WHY?"; I don't have an answer for you.
Run the installer script:
chmod +x installer && ./installer
You'll want to open it and change the $PREFIX
variable in case you don't like things being installed into /usr/local
.
If you've ever used a package manager (apt, yum, rubygems, etc., etc.), you know how to use kapow.
kapow install [name]
kapow remove [name]
TODO: ^ this
kapow search [name or partial name]
require '[name]'
Say we have a kapow lib called 'sweet' (This assumes you have run kapow install sweet
). The contents of sweet are as such:
sweet() { echo "SWEEEEET" }
Now, we want to use the 'sweet' lib inside our own script:
#!/usr/bin/env bash require 'sweet' sweet # echoes "SWEEEEET"
What's even more ridiculous is that after you've installed kapow, you can require libraries directly from your terminal. No joke. Try it!
- Write an update function
- Devise and enforce some kind of metadata in a kapow lib to pull things like creator, homepage, version, etc.
- Think of an actual use case.
Good science, you had better know what you're doing! You take full responsibility for your actions.