diff options
| author | 2026-02-25 20:44:04 -0500 | |
|---|---|---|
| committer | 2026-02-25 20:44:04 -0500 | |
| commit | 2b702a8b91588873a663ecd9af249e1dc1a47160 (patch) | |
| tree | 6e7d693a066dbe762f6a9a5d53b9315333824a09 /src/main.rs | |
| parent | initial commit (diff) | |
begin work on add and remove
Diffstat (limited to '')
| -rw-r--r-- | src/main.rs | 12 |
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(()) } |
