1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 09:59:13 +08:00

1688 Commits

Author SHA1 Message Date
eb5bb1daa8 feat(debugerror)
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

impl errorf

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

return a debug error

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 17:04:48 -08:00
7f31b0410c Merge pull request #332 from jbenet/cmd-ref-part2-rebase
Commands Refactor Part 2 - rebased
2014-11-14 03:36:19 -08:00
ee378e2fbd fix(test) tour content struct now exists
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:31:06 -08:00
a0dab3a29a docs(2/pin)
ipfs1 docs read:

```
btc λ. ipfs pin
ipfs pin -

Commands:

        add         pin an ipfs object to local storage.
        rm          unpin an ipfs object from local storage.

        Use "pin help <command>" for more information about a command.
```

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:24:43 -08:00
f30161b063 cmds: nicer error on no mountpoint 2014-11-14 03:20:46 -08:00
fa8fc1aefc cmds2: check for updates 2014-11-14 03:20:46 -08:00
e4b630289a block put: Support stdin input on 'block put' 2014-11-14 03:20:11 -08:00
2b6b6fac00 commands: Added a flag to enable stdin arguments 2014-11-14 03:20:11 -08:00
9370740db0 commands/cli: Fixed bug when parsing args for a command that doesn't have any argument definitions 2014-11-14 03:20:11 -08:00
1abe97617e main: Pass Stdin to CLI request parser 2014-11-14 03:20:11 -08:00
00b19f8876 commands/cli: Take an optional Stdin value in Parse (read as a reader argument or string argument) 2014-11-14 03:20:11 -08:00
97d2f48b7c cmds2: change add arg name 2014-11-14 03:20:11 -08:00
231960e726 commands/http: Fixed client erroring on nil command output 2014-11-14 03:20:11 -08:00
d05661548c object links: Fixed description 2014-11-14 03:20:11 -08:00
5e598f9a52 cmds2: mount exmplae 2014-11-14 03:20:11 -08:00
b3da13a4af object links: Added text marshaling 2014-11-14 03:20:10 -08:00
7bd7624ccc object data: Moved some helptext into LongDescription 2014-11-14 03:20:10 -08:00
9d299636ad object put: Made output (almost) match original output
(The file path is omitted, but since only one object can be added at a time, I think this is ok)
2014-11-14 03:20:10 -08:00
fceb55ef1e object put: Added plaintext marshaler 2014-11-14 03:20:10 -08:00
b4de6cce9a object put: Fixed putting objects with JSON encoding 2014-11-14 03:20:10 -08:00
eb696d9ac7 object put: Formatted helptext 2014-11-14 03:20:10 -08:00
537f94a318 object get: Fixed protobuf marshaling 2014-11-14 03:20:10 -08:00
4eaf38c6ba object: Added a synopsis 2014-11-14 03:20:10 -08:00
d842c3c98f fix(2/update) insert line break
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:09 -08:00
92c168b03e fix(2/update) newlines
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:09 -08:00
8b07b35467 ignore binary
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:09 -08:00
e0ba14c0eb cmds2: use cmdDetails on level cmds 2014-11-14 03:20:09 -08:00
0eeed7cc68 add string method to command details
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:09 -08:00
1348af01b9 cmd2: version test 2014-11-14 03:20:09 -08:00
aab1a31b1b cmds2: add fix, was not adding dirs 2014-11-14 03:20:08 -08:00
e00830332f cmds2: name synopsis. 2014-11-14 03:20:08 -08:00
80dcc5d237 fix(2/version)
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
65eb1d86fa rm todos
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
476aab9552 rm unused tests
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
1065ae45aa s/number/id "the id of the topic you'd like to tour"
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
f1c20b4e3a don't use the marshaler
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
35da357dc5 fix(tour) patch up and verify tour output
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:07 -08:00
c99e9e6000 feat(details) add funcs to negate negations
not immediately useful, but nice to have

tagging you to make sure i didn't make a mistake here @jbenet

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:07 -08:00
5c4fa5a783 feat(tour) show list of topics when user tries to view topic that doesn't exist
eg.

```
ipfs2 (cmd-ref-part2) λ. go build ./...; ./ipfs2 tour 0

Tour 0 - Hello Mars

Hello Mars

ipfs2 (cmd-ref-part2) λ. go build ./...; ./ipfs2 tour 10

ERROR
    no topic with id: 10

TOPICS

    0 - Hello Mars
    0.1 - Hello Mars 2

```
2014-11-14 03:20:07 -08:00
afa5eedb44 cmds2: commandShouldRunOnDaemon
This commit adds the pretty-complicated decision function
to check whether a command should run on the daemon.

@maybebtc @mappum double check the logic?
2014-11-14 03:20:07 -08:00
bb8d4ebd6b cmds2: cmdDetailsMap 2014-11-14 03:20:07 -08:00
ef0826acd6 fix(commands/err)
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>
2014-11-14 03:20:07 -08:00
ca2828f33c 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>
2014-11-14 03:20:07 -08:00
c5e75f91a6 tests(2/main) errClient
Discovered this quirk about interfaces.

@whyrusleeping
@mappum
@jbenet

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:07 -08:00
0a93f9d764 style(tour) newline at the end
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:06 -08:00
db361d9403 commands/cli: Made Parse return an error if request has unrecognized options 2014-11-14 03:20:06 -08:00
120ead26f4 resolve: Added a TODO 2014-11-14 03:20:06 -08:00
e35453c50d mount: Cleaned up option descriptions 2014-11-14 03:20:06 -08:00
815efdb125 daemon: Added a ShortDescription 2014-11-14 03:20:06 -08:00
ff6c4ce6a4 test(tour) ensure template renders without failure
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:06 -08:00