Skip to content

Commit

Permalink
0.1.2; its be better
Browse files Browse the repository at this point in the history
  • Loading branch information
smokingplaya committed Jun 20, 2024
1 parent ec19b05 commit 1e2a923
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "uki"
repository = "https://github.com/smokingplaya/uki"
description = "Allows you to run pre-prepared commands"
authors = ["smokingplaya"]
version = "0.1.1"
version = "0.1.2"
edition = "2021"

[dependencies]
Expand Down
7 changes: 4 additions & 3 deletions src/commands/help.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::Arguments;
use crate::{commands::list::PinkColor, Arguments};

pub fn execute(_: Arguments) {
println!("uki {} by smokingplaya", env!("CARGO_PKG_VERSION"));
println!("available commands:");
println!("uki {} by {}", env!("CARGO_PKG_VERSION").accent(), "smokingplaya".accent());
println!("github {}", "https://github.com/smokingplaya/uki".accent());
println!("made with {} <3", "love".accent());
}
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fn handle_command(runner: String, cmd: String, args: PreparedArguments) {
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.args([arg, &command])
.output();
.status();
}

pub fn preset(command: String, args: Arguments) {
Expand Down Expand Up @@ -131,7 +131,7 @@ uWu {}", "uki".accent(), runner.accent(), "^-^".accent())
.into_iter()
.for_each(|command| handle_command(runner.clone(), command, prepared_args.clone()));
},
None => return println!("Command {} doesn't exists!", command.accent())
None => return println!("Preset {} doesn't exists!", command.accent())
}

},
Expand Down

0 comments on commit 1e2a923

Please sign in to comment.