Commit Graph

3368 Commits

Author SHA1 Message Date
Brian Tiger Chow
852674b167 chore(pin) rm commented code 2014-11-14 03:17:32 -08:00
Brian Tiger Chow
63feb68ce7 refactor(name, pub, resolve) separate files 2014-11-14 03:17:32 -08:00
Brian Tiger Chow
092e346f94 docs(name/publish/resolve) help 2014-11-14 03:17:32 -08:00
Brian Tiger Chow
c69ea0d6e2 add fixmes 2014-11-14 03:17:32 -08:00
Brian Tiger Chow
ff55968b4c fix(mount) add argument 2014-11-14 03:17:31 -08:00
Brian Tiger Chow
d066f15c37 todo(ls)
@jbenet
2014-11-14 03:17:31 -08:00
Brian Tiger Chow
0e8e3cccb6 docs(ls) help 2014-11-14 03:17:31 -08:00
Brian Tiger Chow
229b22f9c4 docs(log) help
making docs match command:
        name -> subsystem. Is the desired name?
2014-11-14 03:17:31 -08:00
Brian Tiger Chow
48d65c6d95 docs(net-diag) help + name
@jbenet @whyrusleeping

Docs read net-diag. It seems the command was previously registered as
diag. Which do you prefer?
2014-11-14 03:17:31 -08:00
Brian Tiger Chow
1c7ef8926d docs(commands) help 2014-11-14 03:17:31 -08:00
Brian Tiger Chow
a631d745d0 docs(add) help 2014-11-14 03:17:31 -08:00
Brian Tiger Chow
aa1c3cae4a fix(tour) variadic -> false 2014-11-14 03:17:31 -08:00
Brian Tiger Chow
99d5098450 named imports 2014-11-14 03:17:31 -08:00
Matt Bell
36dfb7bc43 core/commands2: Added 'update' command 2014-11-14 03:17:30 -08:00
Matt Bell
3df5202f8a commands/http: Log incoming requests (with DEBUG log level) 2014-11-14 03:17:30 -08:00
Matt Bell
7ead660738 cmd/ipfs2: Set all loggers to DEBUG level when running with 'debug' flag 2014-11-14 03:17:30 -08:00
Brian Tiger Chow
520240d385 feat(commands2/tour) impl 2014-11-14 03:17:30 -08:00
Brian Tiger Chow
c65b01c55c fix(add) cast safely 2014-11-14 03:17:30 -08:00
Brian Tiger Chow
084ffd97aa fix(cli) tear down node 2014-11-14 03:17:30 -08:00
Brian Tiger Chow
440c90be24 extract unpin
@mappum
2014-11-14 03:17:30 -08:00
Brian Tiger Chow
92d20e429d add slice utils
ToStrings and ToReaders
2014-11-14 03:17:30 -08:00
Brian Tiger Chow
4c029a8617 extract toStrings method 2014-11-14 03:17:30 -08:00
Brian Tiger Chow
86f0aac88c refac(commands2/pin) loop 2014-11-14 03:17:29 -08:00
Brian Tiger Chow
353cb39921 refac(commands2/ls) split loop
@mappum
2014-11-14 03:17:29 -08:00
Brian Tiger Chow
6d89094d41 rename -> OnlineMode()
because this method doesn't check actual network status
2014-11-14 03:17:29 -08:00
Brian Tiger Chow
8b6931cb02 check mode with use func node.OnlineMode() bool 2014-11-14 03:17:29 -08:00
Brian Tiger Chow
772f657fcd add online method to node 2014-11-14 03:17:29 -08:00
Brian Tiger Chow
e096060b90 refactor(core/commands2/add) split loop
@mappum
2014-11-14 03:17:29 -08:00
Brian Tiger Chow
8cc1f67f76 fmt 2014-11-14 03:17:29 -08:00
Matt Bell
18cce63ab6 core/commands2: Added 'block' command 2014-11-14 03:17:29 -08:00
Matt Bell
1c5979e549 core/commands2: Added 'mount' command 2014-11-14 03:17:29 -08:00
Matt Bell
16c584ce93 core/commands2: Added 'bootstrap' command 2014-11-14 03:17:28 -08:00
Matt Bell
7228c8fe48 core/commands2: Added 'config' command 2014-11-14 03:17:28 -08:00
Matt Bell
cb72868ab4 commands: Fixed parser argument bug (TODO: better test coverage for command parsers) 2014-11-14 03:17:28 -08:00
Matt Bell
b6aad53d86 core/commands2: Added 'version' command 2014-11-14 03:17:28 -08:00
Matt Bell
af65eec2fc core/commands2: Output error when trying to run 'publish' or 'resolve' in offline mode 2014-11-14 03:17:28 -08:00
Brian Tiger Chow
51c6a1c552 refactor(resolve) separate argument marshalling from the operation
@mappum see how the unpacking of arguments happens separately from the
resolve loop?

It's a bit more verbose, but much clearer.

However, doing two different things in one loop is less clear than doing
them separately.

It also causes problems for further refactoring as it introduces temps
that get in the way of further refactorings.

Plus, there will be 50+ commands, so it's important that we stay
framework agnostic as much as possible.

So, this is the style we prefer. It'll keep us nimble in the long run.
2014-11-14 03:17:28 -08:00
Matt Bell
a7accecc8e core/commands2: Moved 'resolve' and 'publish' into subcommands of 'name' 2014-11-14 03:17:28 -08:00
Matt Bell
bbca445298 core/commands2: Added 'resolve' command 2014-11-14 03:17:28 -08:00
Matt Bell
109af01396 core/commands2: Added 'pin' and 'unpin' commands 2014-11-14 03:17:28 -08:00
Matt Bell
61e8ad9990 core/commands2: Added 'diag' command 2014-11-14 03:17:27 -08:00
Matt Bell
79b88ee028 core/commands2: Added argument definitions to 'publish' 2014-11-14 03:17:27 -08:00
Matt Bell
4765a1d660 core/commands2: Made 'cat' require object argument 2014-11-14 03:17:27 -08:00
Matt Bell
83cda2e699 commands/http: Fixed arg parse bug 2014-11-14 03:17:27 -08:00
Matt Bell
fecb434ab4 commands: Fixed arg validation bug 2014-11-14 03:17:27 -08:00
Matt Bell
1ee6c7e5f2 commands/cli: Fixed arg parse bug 2014-11-14 03:17:27 -08:00
Matt Bell
1cb94a1231 cmd/ipfs2: Display subcommand help text on parse error 2014-11-14 03:17:27 -08:00
Matt Bell
48c108d523 commands/cli: Made Parse return the resolved subcommand, even on error 2014-11-14 03:17:27 -08:00
Matt Bell
37f05a8bf6 commands: Ensure argument parsing maintains total argument count, so that argument validation will fail if there are too many 2014-11-14 03:17:27 -08:00
Matt Bell
116041c5ec commands: Fixed argument value/definition mapping 2014-11-14 03:17:26 -08:00