From cab4deca11db1d22bb98b4140834a0dd793fb7d8 Mon Sep 17 00:00:00 2001 From: Thom Dickson Date: Thu, 16 Dec 2021 20:59:57 -0500 Subject: [PATCH] Add fetch cmd back in and update help message --- src/lib.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c7217e2..bc0d0ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,7 @@ pub struct State { enum Cmd { Add, Help, + Fetch, DumpConfig, } @@ -84,6 +85,15 @@ impl State { } } } + // fetch command + else if x == "fetch" { + match state.cmd { + None => { + state.cmd = Some(Cmd::Fetch); + } + _ => {} + } + } arg = args.next(); } @@ -137,7 +147,7 @@ General help Print out this help message Manage Repositories - clone Add another git repo to keep track of + add Add another git repo to keep track of fetch Update currently tracked repos" ) }