having trouble constructing promise chain for update.  Don't know if I should put some functions in parseCommandLine or miteRepo.  Don't want to refactor too much before all teh commands are working, but I want to get it right.