niver
/
maniver
Archived
1
0
Fork 0

Remove colored text

main
Miraty 2 years ago
parent 8297ab00e4
commit f2e61459fb
  1. 1
      Cargo.toml
  2. 3
      src/main.rs

@ -8,4 +8,3 @@ edition = "2018"
[dependencies]
regex = "1"
colored = "2"

@ -15,9 +15,8 @@ fn main() {
"reload-tor" => reload_tor(),
"le-install" => le_install(args[2].to_string()),
"export-tor" => export_tor(args[2].to_string(), args[3].to_string()),
_ => println!("{}{}{}{}\n{}{}{}{}{}{}{}{}{}", "maniver : ", "ERREUR : ".red(), tool.red(), " : argument non reconnu".red(), " > Utilisez ", "setup-user <user> <password>".italic().green(), ", ", "reload-nginx".italic().green(), ", ", "reload-tor".italic().green(), " ou ", "le-install <domaine>".italic().green(), " comme argument"),
_ => println!("ERROR"),
}
}
fn export_tor(username: String, dir: String) {