prettifying
parent
f7f3a3e866
commit
9e7df5d1b4
@ -1,19 +1,55 @@
|
||||
[package]
|
||||
name = "Amethyst"
|
||||
version = "3.0.0"
|
||||
authors = [ "jnats <michal@tar.black>", "axtlos <axtlos@tar.black>" ]
|
||||
authors = [ "michal <michal@tar.black>", "axtlos <axtlos@tar.black>" ]
|
||||
edition = "2021"
|
||||
description = "A fast and efficient aur helper."
|
||||
description = "A fast and efficient AUR helper."
|
||||
license-file = "LICENSE.md"
|
||||
|
||||
[[bin]]
|
||||
name = "ame"
|
||||
path = "src/main.rs"
|
||||
|
||||
[features]
|
||||
pkg-warner = []
|
||||
|
||||
[[bin]]
|
||||
name = "apt"
|
||||
path = "src/warn.rs"
|
||||
required-features = [ "pkg-warner" ]
|
||||
|
||||
[[bin]]
|
||||
name = "apt-get"
|
||||
path = "src/warn.rs"
|
||||
required-features = [ "pkg-warner" ]
|
||||
|
||||
[[bin]]
|
||||
name = "dnf"
|
||||
path = "src/warn.rs"
|
||||
required-features = [ "pkg-warner" ]
|
||||
|
||||
[[bin]]
|
||||
name = "yum"
|
||||
path = "src/warn.rs"
|
||||
required-features = [ "pkg-warner" ]
|
||||
|
||||
[[bin]]
|
||||
name = "zypper"
|
||||
path = "src/warn.rs"
|
||||
required-features = [ "pkg-warner" ]
|
||||
|
||||
[profile.release]
|
||||
incremental = true
|
||||
debug = true
|
||||
lto = "fat"
|
||||
codegen-units = 1
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "2.34.0", default-features = false, features = [ "suggestions"] }
|
||||
regex = { version = "1.5.4", default-features = false, features = [ "std" ] }
|
||||
mimalloc = { version = "0.1.27", default-features = false }
|
||||
clap = { version = "2.34.0", default-features = false, features = [ "suggestions" ] }
|
||||
regex = { version = "1.5.4", default-features = false, features = [ "std", "unicode-perl" ] }
|
||||
runas = "0.2.1"
|
||||
rusqlite = { version = "0.26.3", default-features = false }
|
||||
reqwest = { version = "0.11.7", default-features = false, features = [ "blocking", "json", "default-tls" ] }
|
||||
serde = { version = "1.0.90", default-features = false, features = [ "derive", "serde_derive" ] }
|
||||
throbber = { version = "0.1.4", default-features = false }
|
@ -0,0 +1,10 @@
|
||||
use std::process::exit;
|
||||
|
||||
pub fn info(a: String) {
|
||||
println!("\x1b[2;22;35m❖\x1b[0m \x1b[1;37m{}\x1b[0m", a)
|
||||
}
|
||||
|
||||
pub fn crash(a: String, b: i32) {
|
||||
println!("\x1b[2;22;31m❌\x1b[0m \x1b[1;91m{}\x1b[0m", a);
|
||||
exit(b);
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
let arg = &env::args().collect::<Vec<String>>()[0];
|
||||
|
||||
println!(
|
||||
"Sorry for the bother, we don't use \x1b[2;22;35m{}\x1b[0m on Crystal, we use \x1b[2;22;35mame\x1b[0m! Please use that instead!",
|
||||
arg.split('/')
|
||||
.collect::<Vec<&str>>()
|
||||
.last()
|
||||
.unwrap()
|
||||
);
|
||||
std::process::exit(0);
|
||||
}
|
Loading…
Reference in New Issue