Arjun31415 / Firefly-cli

CLI for managing colors and effects for CosmicByte Firefly Keyboard
1 stars 1 forks source link

How to run? #1

Open Spritan opened 3 months ago

Spritan commented 3 months ago
(base) ➜ Firefly-cli git:(main) cargo run warning: method set_colors is never used --> src/main.rs:62:12 44 impl Firefly { ------------ method in this implementation ... 62 pub fn set_colors(&mut self, colors: Vec) { ^^^^^^^^^^

= note: #[warn(dead_code)] on by default

warning: Firefly-cli (bin "Firefly-cli") generated 1 warning Finished dev profile [unoptimized + debuginfo] target(s) in 0.04s Running target/debug/Firefly-cli error: the following required arguments were not provided: --effect

Usage: Firefly-cli --effect

For more information, try '--help'.

installation

trail: (base) ➜ Firefly-cli git:(main) Firefly-cli --help zsh: Firefly-cli: command not found...

Arjun31415 commented 3 months ago

you have to write the relative path to the binary. you cannot just use firefly-cli which is why it says command not found. an easy way -

cargo build 
./target/debug/Firefly-cli --colors="#f7768e","#9ece6a","#e0af68","#7aa2f7","#bb9af7","#7dcfff","#ff9e64" -e ripple

use the --help command for more info

Arjun31415 commented 3 months ago

With cargo run you need to use -- to pass arguments to the executable otherwise they are interpreted by cargo. Ex:

cargo run -- -e ripple