1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
extern crate phollaits;
extern crate walkdir;
extern crate is_executable;
mod environment;
mod internal_command;
pub use environment::*;
pub use internal_command::*;
const ENV_VAR_APPIMAGE: &str = "APPIMAGE";
const ENV_VAR_APPDIR: &str = "APPDIR";
const ENV_VAR_OWD: &str = "OWD";
const ENV_VAR_ARG0: &str = "ARGV0";
pub const PATH: [&'static str; 4] = [ "/usr/local/bin", "/usr/bin", "/bin", "/usr/games" ];
const SPECIAL_PATH_DATA: &str = "/data";
const SPECIAL_PATH_WEB: &str = "/web";
const NOT_FOUND: &str = "not found";
const ERROR_CMDLINE_QUOTES: &str = "There are a wrong number of quotes.";
const ERROR_EMPTY_STRING: &str = "Empty string.";
const ERROR_NOT_SET: &str = "not set.";
const SEPARATOR_DOUBLE_QUOTE: &str = "\"";
const SEPARATOR_PIPE: &str = "|";