@noorslvt/shev 0.0.0-stage → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/main.rs ADDED
@@ -0,0 +1,18 @@
1
+ //! `shev` — the line-based CLI.
2
+ //!
3
+ //! The TUI lives in the `shev` binary: `cargo run --release --bin shev`.
4
+
5
+ use std::process::ExitCode;
6
+
7
+ fn main() -> ExitCode {
8
+ if let Some(outcome) = shev::installation::maintenance() {
9
+ return outcome;
10
+ }
11
+ match shev::cli_run() {
12
+ Ok(()) => ExitCode::SUCCESS,
13
+ Err(err) => {
14
+ eprintln!("\nerror: {err}");
15
+ ExitCode::FAILURE
16
+ }
17
+ }
18
+ }