- 14 Nov, 2014 40 commits
-
-
Matt Bell authored
-
Brian Tiger Chow authored
I didn't know there were dragons here. When casting errors we've gotta be careful. Apparently both values and pointers satisfy the error interface. Type checking for one doesn't catch the other. cc @whyrusleeping @mappum @jbenet License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
-
Brian Tiger Chow authored
feat(commands) add ClientError(msg) helper and use it to return a fancy error to the client in the tour @jbenet this exists now License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
-
Matt Bell authored
-
Juan Batiz-Benet authored
Also: - map[cmds.EncodingType]cmds.Marshaller -> MarshalMap cc @mappum @maybebtc
-
Matt Bell authored
-
Juan Batiz-Benet authored
-
Matt Bell authored
-
Brian Tiger Chow authored
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
-
Brian Tiger Chow authored
@mappum License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
-
Matt Bell authored
-
Brian Tiger Chow authored
boilerplate I know you'll love this one @mappum License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
-
Brian Tiger Chow authored
nil function cc @jbenet @mappum License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
-
Matt Bell authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
Attention @maybebtc @mappum I cleaned up + simplified the main flow. Now, all printing is contained inside main itself! (:cheer:). I do this with the help of a cmdInvocation struct that has both a Parse and Run. The only major clunkiness left is that the "CallCommand" is still its own function. But *shrug*. Please test it works as we would expect. i changed much of the flow, so likely that i missed a complicated edge case. main roadmap: - parse the commandline to get a cmdInvocation - if user requests, help, print it and exit. - run the command invocation - output the response - if anything fails, print error, maybe with help
-
Matt Bell authored
-
Matt Bell authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
Matt Bell authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
Matt Bell authored
-
Juan Batiz-Benet authored
-
Matt Bell authored
-
Matt Bell authored
-
Brian Tiger Chow authored
-
Brian Tiger Chow authored
-
Brian Tiger Chow authored
@mappum, could you CR this and let me know if I've interpreted the desired behavior correctly?
-
Brian Tiger Chow authored
NB: return variables are provided for clarity. Otherwise, it's not entirely clear that the bool is for _found_.
-
Brian Tiger Chow authored
TODO add tests for remaning, untested methods.
-
Brian Tiger Chow authored
@mappum this optionvalue is a really great abstraction. It makes maintenance super simple! @jbenet @whyrusleeping
-
Brian Tiger Chow authored
we've gotta allow the code to speak for itself. I wouldn't have been able to safely modify this code without having my hand held. I am but a lowly programmer with a simple mind. cc @jbenet @whyrusleeping @mappum
-
Brian Tiger Chow authored
-
Matt Bell authored
-
Juan Batiz-Benet authored
-
Matt Bell authored
-