Commit Graph

1450 Commits

Author SHA1 Message Date
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
Brian Tiger Chow
d180832f3e add todo 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
8960a4ff8b TODO(ipfs2/init) add FIXME note as a reminder about
c6b74207bc
2014-11-14 03:17:26 -08:00
Brian Tiger Chow
79015e7891 fix(ipfs2/init) declarative 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
e305e45e81 fix(ipfs2/init) identity 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
62fd9166ce fix(ipfs2/init) datastore 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
542c2a2da3 fix(ipfs2/init) extract bootstrap 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
e86e7d875e extract publish func 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
96fd88e916 feat(ipfs2/main) port mem-profiling from previous main
was added 5 days ago in...

7510ef2081
2014-11-14 03:17:26 -08:00
Brian Tiger Chow
46f1afbe08 refactor(init) re-order 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
a1e738e297 docs(init) rename filename var 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
8d7ebcb582 refactor(init) rename extracted method 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
3b7983e028 refactor(init) extract response 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
1b5e4032ff refactor(init) extract context 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
f3048ab712 refactor(init) extract bits flag 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
630b88d227 refactor(init) extract force flag 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
b987c99eea refactor(init) extract dspath 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
3c8657503c refactor(init) check file after 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
d894924152 refactor(init) return an error 2014-11-14 03:17:24 -08:00