service_install/lib.rs
1#![doc= include_str!("../README.md")]
2
3/// Changes the tense of the string returned by the `describe` functions for
4/// [`InstallStep`](install::InstallStep), [`RemoveStep`](install::RemoveStep) and
5/// [Rollback](install::RollbackStep). Final punctuation is missing and must be added.
6pub enum Tense {
7 Past,
8 Questioning,
9 Future,
10 Active,
11}
12
13impl Tense {
14 pub fn punct(&self) -> &str {
15 match self {
16 Tense::Questioning => "?",
17 Tense::Past | Tense::Future | Tense::Active => ".",
18 }
19 }
20}
21
22/// Installation (or removal) configuration, steps, and errors.
23pub mod install;
24pub use install::Spec;
25/// Scheduling options
26pub mod schedule;
27pub use schedule::Schedule;
28#[cfg(feature = "tui")]
29/// A pre made basic TUI that functions as an install and removal wizard
30pub mod tui;