aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorGravatar BanceDev 2026-02-25 20:44:04 -0500
committerGravatar BanceDev 2026-02-25 20:44:04 -0500
commit2b702a8b91588873a663ecd9af249e1dc1a47160 (patch)
tree6e7d693a066dbe762f6a9a5d53b9315333824a09 /src/main.rs
parentinitial commit (diff)
begin work on add and remove
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index e9bb749..ab6f558 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,13 +1,19 @@
-use std::env;
use action::Action;
+use std::env;
mod action;
+mod util;
-fn main() {
+fn main() -> std::io::Result<()> {
let args: Vec<String> = env::args().collect();
match Action::parse(&args) {
- Ok(action) => action.execute(),
+ Ok(action) => {
+ if let Err(e) = action.execute() {
+ eprintln!("forge: {}", e);
+ }
+ }
Err(e) => eprintln!("forge: {}", e),
}
+ Ok(())
}