This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor command processing and help text
Sorry for this big change. I think it's a big improvement. First, I restructured how commands work. - Commands are now structs that implement the command interface - Flags are bound to parameters in the command struct - Run is a method on the command struct, with access to flag vars This allowed me to make a lot of consistency improvements. - Good news: dep foo -v ... works - Bad news: dep -v foo ... stopped working (but that was weird) - Good news: dep foo -h works and looks consistent - Bad news: dep help foo doesn't exist anymore (but that was weird) With all of that in place, I was able to audit and refactor all of the help texts. I think they're a lot better. The biggest individual change was that I moved all of the ensure usage examples to a special flag, ensure -examples. I hope that's acceptable. If I screwed anything else up, please accept my apologies.
- Loading branch information
Peter Bourgon
committed
Dec 30, 2016
1 parent
06703b9
commit 754232e
Showing
5 changed files
with
313 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.