1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

28 Commits

Author SHA1 Message Date
e8d0cbff1d commands: Check argument validity when running commands 2014-11-04 02:04:49 -08:00
827f1dd0b0 commands: Changed Request arguments to a []interface{} 2014-11-04 02:04:48 -08:00
83b2ba00e9 commands: Removed Command#Private field 2014-11-04 02:04:48 -08:00
460387fc3b commands: Added 'Private' field to Command 2014-11-04 02:04:47 -08:00
4911dc069a refactor(commands) swap argument order to match Http(w, r) idiom 2014-11-04 02:04:47 -08:00
ef290faa88 commands: Added a Type field for defining output struct formats 2014-11-04 02:04:46 -08:00
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
ca44d0da2c commands: Removed Command#Register and exported Subcommands so subcommands can be defined statically 2014-10-21 18:05:54 -07:00
6ff98df9c1 commands: Do command collision check in GetOptions 2014-10-21 18:00:26 -07:00
dd84a3eb44 commands: Got rid of Response#Stream() in favor of setting value to a io.Reader 2014-10-21 16:15:06 -07:00
4896123c14 commands: Export command Run function 2014-10-21 15:24:39 -07:00
7bd7ed6d52 commands: Added output stream field to Response 2014-10-20 14:38:36 -07:00
b10fc2cc50 turned req + res into interfaces 2014-10-20 11:49:07 -07:00
92528ba764 Sub -> Subcommand 2014-10-20 07:55:23 -07:00
84fa7bc46d AddOptionNames func 2014-10-20 07:53:55 -07:00
09d2277f0a f -> run, Function type. 2014-10-20 07:53:54 -07:00
7673ce6f65 fmt, lint, + vet commands/ 2014-10-20 07:53:14 -07:00
4f06c6fdba commands: Formatted code 2014-10-20 07:04:54 -07:00
d2176c05eb commands: Added Command#Get 2014-10-20 07:04:54 -07:00
4af61ad994 commands: Added Command#Resolve 2014-10-20 07:04:54 -07:00
c575b5087a commands: Added option value conversion, and moved option validation logic into Request#convertOptions 2014-10-20 07:04:53 -07:00
793a8de9c2 commands: Refactored to make Request contain command path 2014-10-20 07:04:53 -07:00
1b35615824 commands: Made Command#GetOption method, for getting all options for a given command path 2014-10-20 07:04:52 -07:00
43670971d8 commands: Formatted code 2014-10-20 07:04:52 -07:00
b2ee05a0be commands: Updated Command to use Response for output rather than (interface{}, error) 2014-10-20 07:04:50 -07:00
d7e9afc801 commands: Use global options when registering and calling commands 2014-10-20 07:04:50 -07:00
5b18844c06 commands: Check for option name collisions 2014-10-20 07:04:50 -07:00
dd2a10509f commands: Implemented Command 2014-10-20 07:04:49 -07:00