Add fetch cmd back in and update help message

This commit is contained in:
Thom Dickson 2021-12-16 20:59:57 -05:00
parent f572d6d8b2
commit cab4deca11
Signed by: boots
GPG Key ID: 40BE2AF8EBF8D2BB
1 changed files with 11 additions and 1 deletions

View File

@ -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"
)
}