14 pub use error::{Error, Result};
16 use lazy_static::lazy_static;
18 pub const EXIT_FAILURE: i32 = 127;
20 const VERSION: &str = "0.1.6";
23 static ref NO_COLOR_IS_SET: bool = {
26 env::var("NO_COLOR").is_ok()
33 ouch - Obvious Unified Compressed files Helper
36 ouch <files...> Decompresses files.
38 ouch compress <files...> OUTPUT.EXT Compresses files into OUTPUT.EXT,
39 where EXT must be a supported format.
42 -h, --help Display this help information.
43 -y, --yes Skip overwrite questions.
44 -n, --no Skip overwrite questions.
45 --version Display version information.
48 -o, --output FOLDER_PATH When decompressing, to decompress files to
51 Visit https://github.com/vrmiguel/ouch for more usage examples.
56 {cyan}ouch{reset} - Obvious Unified Compression files Helper
59 {green}ouch {magenta}<files...>{reset} Decompresses files.
61 {green}ouch compress {magenta}<files...> OUTPUT.EXT{reset} Compresses files into {magenta}OUTPUT.EXT{reset},
62 where {magenta}EXT{reset} must be a supported format.
65 {yellow}-h{white}, {yellow}--help{reset} Display this help information.
66 {yellow}-y{white}, {yellow}--yes{reset} Skip overwrite questions.
67 {yellow}-n{white}, {yellow}--no{reset} Skip overwrite questions.
68 {yellow}--version{reset} Display version information.
70 {cyan}SPECIFIC FLAGS:{reset}
71 {yellow}-o{reset}, {yellow}--output{reset} FOLDER_PATH When decompressing, to decompress files to
74 Visit https://github.com/vrmiguel/ouch for more usage examples.",
85 fn version_command() {
87 println!("{green}ouch{reset} {}", crate::VERSION, green = green(), reset = reset());