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

1534 Commits

Author SHA1 Message Date
b6aad53d86 core/commands2: Added 'version' command 2014-11-14 03:17:28 -08:00
af65eec2fc core/commands2: Output error when trying to run 'publish' or 'resolve' in offline mode 2014-11-14 03:17:28 -08:00
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
a7accecc8e core/commands2: Moved 'resolve' and 'publish' into subcommands of 'name' 2014-11-14 03:17:28 -08:00
bbca445298 core/commands2: Added 'resolve' command 2014-11-14 03:17:28 -08:00
109af01396 core/commands2: Added 'pin' and 'unpin' commands 2014-11-14 03:17:28 -08:00
61e8ad9990 core/commands2: Added 'diag' command 2014-11-14 03:17:27 -08:00
79b88ee028 core/commands2: Added argument definitions to 'publish' 2014-11-14 03:17:27 -08:00
4765a1d660 core/commands2: Made 'cat' require object argument 2014-11-14 03:17:27 -08:00
83cda2e699 commands/http: Fixed arg parse bug 2014-11-14 03:17:27 -08:00
fecb434ab4 commands: Fixed arg validation bug 2014-11-14 03:17:27 -08:00
1ee6c7e5f2 commands/cli: Fixed arg parse bug 2014-11-14 03:17:27 -08:00
1cb94a1231 cmd/ipfs2: Display subcommand help text on parse error 2014-11-14 03:17:27 -08:00
48c108d523 commands/cli: Made Parse return the resolved subcommand, even on error 2014-11-14 03:17:27 -08:00
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
116041c5ec commands: Fixed argument value/definition mapping 2014-11-14 03:17:26 -08:00
d180832f3e add todo 2014-11-14 03:17:26 -08:00
8960a4ff8b TODO(ipfs2/init) add FIXME note as a reminder about
c6b74207bc
2014-11-14 03:17:26 -08:00
79015e7891 fix(ipfs2/init) declarative 2014-11-14 03:17:26 -08:00
e305e45e81 fix(ipfs2/init) identity 2014-11-14 03:17:26 -08:00
62fd9166ce fix(ipfs2/init) datastore 2014-11-14 03:17:26 -08:00
542c2a2da3 fix(ipfs2/init) extract bootstrap 2014-11-14 03:17:26 -08:00
e86e7d875e extract publish func 2014-11-14 03:17:26 -08:00
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
46f1afbe08 refactor(init) re-order 2014-11-14 03:17:25 -08:00
a1e738e297 docs(init) rename filename var 2014-11-14 03:17:25 -08:00
8d7ebcb582 refactor(init) rename extracted method 2014-11-14 03:17:25 -08:00
3b7983e028 refactor(init) extract response 2014-11-14 03:17:25 -08:00
1b5e4032ff refactor(init) extract context 2014-11-14 03:17:25 -08:00
f3048ab712 refactor(init) extract bits flag 2014-11-14 03:17:25 -08:00
630b88d227 refactor(init) extract force flag 2014-11-14 03:17:25 -08:00
b987c99eea refactor(init) extract dspath 2014-11-14 03:17:25 -08:00
3c8657503c refactor(init) check file after 2014-11-14 03:17:25 -08:00
d894924152 refactor(init) return an error 2014-11-14 03:17:24 -08:00
faf6454df6 refactor(init) extract method 2014-11-14 03:17:24 -08:00
fee3b0dd31 +2 characters for readability 2014-11-14 03:17:24 -08:00
d2d29a80dc docs(commands2/cat) help text 2014-11-14 03:17:24 -08:00
2a15fe8e1e refactor(commands2/cat) readability 2014-11-14 03:17:24 -08:00
c67e377162 docs(ipfs2/daemon) add some copy
can replace if desired, but at least it's not an end-user TODO
2014-11-14 03:17:24 -08:00
fd1cd99556 restore add.go from master 2014-11-14 03:17:24 -08:00
283c175fc4 commands/http: Refactored API to a Client object that takes a string address 2014-11-14 03:17:24 -08:00
f95476c19a commands: Allow overriding marshaller for any encoding type 2014-11-14 03:17:24 -08:00
0afd3391a8 commands: Replaced 'Formatter' with 'Marshaller' 2014-11-14 03:17:23 -08:00
3dd7a9a5c8 cmd/ipfs2: Broke up main into subfunctions 2014-11-14 03:17:23 -08:00
7c1e45786a cmd/ipfs2: Stricter option type coercion in main 2014-11-14 03:17:23 -08:00
7d4d55a84d commands/http: Unexported Handler fields and created constructor 2014-11-14 03:17:23 -08:00
39a60e7f1d commands: Return a reader in a Response#Reader method, instead of making Response implementing io.Reader 2014-11-14 03:17:23 -08:00
15cd24a6d1 commands: Renamed Response#Value to Response#Output 2014-11-14 03:17:23 -08:00
f1209d0912 core/commands2: Added argument definition for 'ls' 2014-11-14 03:17:23 -08:00
ff987cffae core/commands2: Added 'log' command 2014-11-14 03:17:23 -08:00