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
44
45
46
47
48
49
50
51
52
53
pub mod errors {
pub static DIRECTORY: &str = "Couldn't create the configuration directory";
pub static PROJECT: &str = "Couldn't infer the project directories";
pub static R_FILE: &str = "Couldn't read from configuration file";
pub static W_FILE: &str = "Couldn't write to configuration file";
pub static ENCODING: &str = "Couldn't encode configuration to YAML";
pub static AQ: &str = "Unable to read or parse appropriately";
pub static COM: &str = "Communication error in channels, probably due to a thread failure";
pub static PROC: &str = "Existential horror, couldn't find self!!!";
pub static INTER: &str = "is not a valid interaction";
}
pub mod config {
pub static FILENAME: &str = "config.yaml";
pub static PROJECT_INFO: (&str, &str, &str) = ("org", "amisoft", "focus-ami");
pub static NEXT: &str = "Select the next field to edit, or quit (\\q)";
pub static CREATE_MESG: &str = "We are going to create a configuration for you
Whenever you are happy with the default you can type \\q";
pub static EDIT_MESG: &str = "Editing mode
You can edit parts or your configuration. Your available options are:
\t k: edit the time that passes between process killings
\t w: edit the work time
\t p: edit the password
\t e: edit the processes
\t c: check the configuration
\t\\q: stop editing";
}
pub mod interact {
pub static INSTRUCTIONS: &str =
"To start an interaction type the corresponding code, wait for up to one second
Possible interactions are:
\te: edit the config
\tp: pause
\tq: quit early
\tr: see remaining time
\ta: add some time to current run (but not to configuration)
";
pub static ANNOTATOR: &str = "This can help you find the process name of your applications
This helper can fail in three ways
1. Your user is not the one responsible for the process created
2. The process was already started
3. The process is an instance of something else running it eg: python3
applications";
pub static START: &str = "Please start the application you want to know the process name of.
Then press return.";
pub static CAND: &str = "The possible candidates are: ";
pub static PAUSE: &str = "Paused, pulse return to continue";
pub static CONT: &str = "Finished pause";
pub static ADD: &str = "How much time do you wish to add?
Max: 255";
pub static FINNISH: &str = "\x07Finished";
}