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

39 Commits

Author SHA1 Message Date
84101c8a2a go test passes, sharness fails
pass API path to cmds, fix options in add.

License: MIT
Signed-off-by: keks <keks@cryptoscope.com>
2018-01-21 11:11:47 -08:00
bd9576fa57 start adopting cmds3.0 - lots of errors!
- move go-ipfs-cmds/legacy to go-ipfs/commands/legacy
- update cmds,cmdkit; go test ./... ok

License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
dfe7ef4fcf gx: update go-multihash
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00
76e1da02a8 gx: massive update
Note: This commit is technically broken. However, I need to make a bunch of
cmds changes to make this work and I'd rather not bundle both changes into a
single commit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:27 -08:00
f287524949 cmd: use go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:41 +01:00
c5df8f0796 apply the megacheck tool to improve code quality
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:56:11 -04:00
7f61b3170f Add logic for copying ShortDes to LongDesc if it is not present
This is the best place for inserting it that I found.

Test in #2648 should be modified to run `Root.ProcessHelp()`.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-14 13:23:35 +02:00
7b4de230eb commands: Refactored Command#Run function signature to (req Request, res Response) 2015-01-23 18:29:29 -08:00
ae6f00d766 commands: Fixed tests 2014-11-19 00:36:42 -08:00
8968b98cf3 commands: Added tests for Request#SetOptions 2014-11-18 02:13:57 -08:00
0b509098aa commands: Fixed tests 2014-11-18 02:13:55 -08:00
3c5bfcec31 commands: Fixed tests 2014-11-16 18:07:56 -08:00
3e507f7c9f commands: Changed option accessor API (Request#Option now returns an OptionValue) 2014-11-14 03:17:38 -08:00
e34a0fd658 commands: Updated tests 2014-11-14 03:17:37 -08:00
ce28fa363b commands: Fixed tests 2014-11-14 03:17:37 -08:00
cdf221078d commands: Fixed tests 2014-11-14 03:17:34 -08:00
39c78fbe06 commands: Fixed tests 2014-11-04 02:04:48 -08:00
4911dc069a refactor(commands) swap argument order to match Http(w, r) idiom 2014-11-04 02:04:47 -08:00
6302356e15 commands: Fixed tests 2014-11-04 02:04:46 -08:00
b033e33293 commands: Fixed test 2014-11-04 02:04:44 -08:00
184c25430b go-vet friendly codebase
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
dd81bf630f commands: Fixed tests 2014-10-21 18:07:49 -07:00
4f10f03660 commands: Fixed tests 2014-10-21 16:15:22 -07:00
8786878fdb commands: Fixed tests 2014-10-21 15:25:01 -07:00
b022ba4a3a commands: Fixed tests 2014-10-20 14:39:23 -07:00
b10fc2cc50 turned req + res into interfaces 2014-10-20 11:49:07 -07:00
bbef82f4fa "enc" -> EncShort 2014-10-20 08:00:28 -07:00
09d2277f0a f -> run, Function type. 2014-10-20 07:53:54 -07:00
4f06c6fdba commands: Formatted code 2014-10-20 07:04:54 -07:00
c054fb3655 commands: Added simple Command#Resolve test 2014-10-20 07:04:54 -07:00
4b0f44e441 commands: Fixed tests 2014-10-20 07:04:54 -07:00
47eea7fd93 commands: Added a option validation test for convertible string values 2014-10-20 07:04:53 -07:00
1e8719e7f4 commands: Fixed tests 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
43670971d8 commands: Formatted code 2014-10-20 07:04:52 -07:00
df034c9c0b commands: Updated Command tests for new Response API 2014-10-20 07:04:51 -07:00
97ce60f8a4 commands: Added global options list to command tests 2014-10-20 07:04:50 -07:00
e593c180fe commands: Added tests for Command.Register 2014-10-20 07:04:50 -07:00
dd682963a2 commands: Wrote tests for command option validation 2014-10-20 07:04:50 -07:00