Blackout is a simple, fast, and lightweight CLI copilot for your daily tasks. It's written in Rust and uses PawanOsman API as Large Language Model services.
Before using it, you need to generate an API key from PawanOsman discord server at #bot
channel by typing /key
. By default PawnOsman allowing you to consume the API only with 1 ip address. So if you want to change your IP address, run the following command:
blackout --reset-ip
When you have installed Rust and generated an API key, you can run Blackout using Cargo:
$ cargo run -- --help
When you have installed Rust and generated an API key, you can run start building Blackout using Cargo:
$ cargo build --release
Moove the binary to /usr/local/bin
:
$ sudo mv target/release/blackout /usr/local/bin/blackout
To get help about the commands, you can use the --help
flag:
$ blackout --help
To get help about a specific command, you can use the -t
for the technology and -a
for action you want to get help about.
For example, to get help about docker
technology and delete all volumes
action, you can use:
$ blackout -t docker -a 'delete all volumes'`
output should be like this:
─────────────────────────────────────────
docker volume rm $(docker volume ls -q)
─────────────────────────────────────────