Matt Bell
2c8fc8564c
commands/cli: Made parser handle variadic arguments
2014-11-04 02:04:49 -08:00
Matt Bell
e8d0cbff1d
commands: Check argument validity when running commands
2014-11-04 02:04:49 -08:00
Matt Bell
ee2c76992a
commands/cli: Open argument files when creating Requests (Moved out of HTTP client)
2014-11-04 02:04:48 -08:00
Matt Bell
f7aa2b9f10
commands: Renamed ArgPath to ArgFile
2014-11-04 02:04:48 -08:00
Matt Bell
40858b43ed
commands/http: Added stream argument handling to client and request parser
2014-11-04 02:04:48 -08:00
Matt Bell
39c78fbe06
commands: Fixed tests
2014-11-04 02:04:48 -08:00
Matt Bell
3a8d60cc61
commands: Removed inpout stream from Request
2014-11-04 02:04:48 -08:00
Matt Bell
827f1dd0b0
commands: Changed Request arguments to a []interface{}
2014-11-04 02:04:48 -08:00
Matt Bell
30e968754e
commands/cli: Error if no subcommand matched
2014-11-04 02:04:48 -08:00
Matt Bell
83b2ba00e9
commands: Removed Command#Private field
2014-11-04 02:04:48 -08:00
Matt Bell
c0d3edd4f9
commands/cli: Made Parse handle multiple root commands
2014-11-04 02:04:47 -08:00
Matt Bell
cfa56dde82
commands/http: Error if trying to run private command
2014-11-04 02:04:47 -08:00
Matt Bell
abcebb0bc2
commands/http: Improved client error handling
2014-11-04 02:04:47 -08:00
Matt Bell
ea09268044
commands/http: 404 when trying to call root command
2014-11-04 02:04:47 -08:00
Matt Bell
1e0cabd4db
commands/http: Pass root command in as field instead of statically depending on core/commands
2014-11-04 02:04:47 -08:00
Matt Bell
460387fc3b
commands: Added 'Private' field to Command
2014-11-04 02:04:47 -08:00
Matt Bell
b61cfd9224
commands: Don't error when marshalling empty Responses
2014-11-04 02:04:47 -08:00
Brian Tiger Chow
4911dc069a
refactor(commands) swap argument order to match Http(w, r) idiom
2014-11-04 02:04:47 -08:00
Brian Tiger Chow
b1bf60b877
fix(cmd/ipfs2, commands) imports
2014-11-04 02:04:46 -08:00
Matt Bell
c0a9871d48
commands/http: Made HTTP client unmarshal response values based on the Command#Type
2014-11-04 02:04:46 -08:00
Matt Bell
ef290faa88
commands: Added a Type field for defining output struct formats
2014-11-04 02:04:46 -08:00
Matt Bell
6302356e15
commands: Fixed tests
2014-11-04 02:04:46 -08:00
Matt Bell
32a2959348
commands/http: Don't try to parse HTTP response into a Response, just read the output
2014-11-04 02:04:46 -08:00
Matt Bell
714e13b63a
commands/http: Explicitly define the MIME types for each encoding
2014-11-04 02:04:46 -08:00
Matt Bell
b54801cc10
commands: Added plaintext marshalling to Response#Marshal()
2014-11-04 02:04:46 -08:00
Matt Bell
38f8f1c279
commands: Added a Format function to Command, for creating human-readable output based on a Response
2014-11-04 02:04:46 -08:00
Matt Bell
81f29257a1
commands: Gave Requests a reference to the command they are being called on
2014-11-04 02:04:46 -08:00
Matt Bell
507192ef6e
commands/http: Use request body as command input stream
2014-11-04 02:04:45 -08:00
Matt Bell
42633e5d40
commands/http: Send request arguments in client requests
2014-11-04 02:04:45 -08:00
Matt Bell
753162529a
commands/http: Parse command args
2014-11-04 02:04:45 -08:00
Matt Bell
52bc8bd422
commands/http: Moved http request parsing into a Parse function
2014-11-04 02:04:45 -08:00
Matt Bell
29b96b64a5
commands/http: Made Handler set request contexts
2014-11-04 02:04:45 -08:00
Matt Bell
289bce6bdb
commands: Added Request#SetContext()
2014-11-04 02:04:45 -08:00
Matt Bell
48bd73c530
commands/http: Made client load RPC host from config
2014-11-04 02:04:45 -08:00
Matt Bell
20f86c01ce
commands: Added Context() to Request
2014-11-04 02:04:45 -08:00
Matt Bell
b033e33293
commands: Fixed test
2014-11-04 02:04:44 -08:00
Matt Bell
53e1359871
commands: Silently skip unrecognized options, it should be up to the transport to decide if they cause an error
2014-11-04 02:04:44 -08:00
Matt Bell
43c61a4e4b
commands/http: Moved HTTP RPC handler into commands/http
2014-11-04 02:04:44 -08:00
Matt Bell
8b61daa1db
commands/http: Moved HTTP RPC into commands/http package
2014-11-04 02:04:44 -08:00
Matt Bell
a65c99e71e
commands: Added Request#Options so consumers can iterate through provided options
2014-11-04 02:04:44 -08:00
Matt Bell
e8b37acda3
commands: Simplified Error string output
2014-11-04 02:04:44 -08:00
Matt Bell
3cebd2176e
commands: Made Response implement io.Reader
2014-11-04 02:04:44 -08:00
Matt Bell
94683bb6b2
commands: Removed unused output stream field from Response
2014-11-04 02:04:43 -08:00
Matt Bell
19e5fbae70
commands: Made Response#Error return an *Error instead of an error
2014-11-04 02:04:43 -08:00
Juan Batiz-Benet
60ef8e5e8c
Merge pull request #254 from jbenet/comments
...
comment comment comment comment
2014-11-03 05:05:28 -08:00
Juan Batiz-Benet
676ee826fb
Merge pull request #256 from jbenet/docker-init-fix
...
fix(Dockerfile)
2014-11-02 23:34:03 -08:00
Brian Tiger Chow
c7e55ef3cf
fix(Dockerfile)
...
removed init so that the image ships no longer ships with an identity.
TODO Maybe allow `ipfs --init run`? It's important to keep the initialization process simple.
2014-11-02 22:24:11 -08:00
Brian Tiger Chow
ea1576af9b
docs(Dockerfile)
...
don't need -it
2014-11-02 22:09:20 -08:00
Brian Tiger Chow
49ac059c37
docs: TODO
2014-11-02 20:40:25 -08:00
Jeromy
c3d04570c0
a few more comments
2014-11-03 03:53:16 +00:00