Commit Graph

332 Commits

Author SHA1 Message Date
Jeromy
f21ec1923a verify ipns records 2014-11-16 02:45:19 -08:00
Juan Batiz-Benet
93ad2bd057 mount: if already mounted, unmount before new attempt
This is because if the user specifies that they want
to mount multiple times, something must be wrong. try
unmounting to reset things and then proceed.
2014-11-16 02:22:53 -08:00
Juan Batiz-Benet
99f2378bac mount: fixed mount init + teardown
This commit adds a Mount abstraction (which is really just
a wrapped context closer). It makes sure to bind the mount
to the fate of the Node (i.e. close it if the node ends).
This fixes #350
2014-11-16 01:42:42 -08:00
Juan Batiz-Benet
a4488cab4c cmds: root help inc synopsis 2014-11-15 09:04:49 -08:00
Juan Batiz-Benet
7d448d9dab cmds mount synopsis 2014-11-15 09:04:49 -08:00
Juan Batiz-Benet
1871d37f12 Merge pull request #333 from zignig/mount_fix
windows mount  fix
2014-11-15 06:51:55 -08:00
Juan Batiz-Benet
8a284c9848 cmds: fix block output. 2014-11-15 06:43:02 -08:00
Brian Tiger Chow
0b42d77e13 refactor(core, bitswap) split bitswap init into two steps
@jbenet
2014-11-15 02:10:53 -08:00
Simon Kirkby
43fb5d5d72 windows fix 2014-11-14 21:03:30 +08:00
Brian Tiger Chow
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
Juan Batiz-Benet
f30161b063 cmds: nicer error on no mountpoint 2014-11-14 03:20:46 -08:00
Matt Bell
e4b630289a block put: Support stdin input on 'block put' 2014-11-14 03:20:11 -08:00
Juan Batiz-Benet
97d2f48b7c cmds2: change add arg name 2014-11-14 03:20:11 -08:00
Matt Bell
d05661548c object links: Fixed description 2014-11-14 03:20:11 -08:00
Juan Batiz-Benet
5e598f9a52 cmds2: mount exmplae 2014-11-14 03:20:11 -08:00
Matt Bell
b3da13a4af object links: Added text marshaling 2014-11-14 03:20:10 -08:00
Matt Bell
7bd7624ccc object data: Moved some helptext into LongDescription 2014-11-14 03:20:10 -08:00
Matt Bell
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
Matt Bell
fceb55ef1e object put: Added plaintext marshaler 2014-11-14 03:20:10 -08:00
Matt Bell
b4de6cce9a object put: Fixed putting objects with JSON encoding 2014-11-14 03:20:10 -08:00
Matt Bell
eb696d9ac7 object put: Formatted helptext 2014-11-14 03:20:10 -08:00
Matt Bell
537f94a318 object get: Fixed protobuf marshaling 2014-11-14 03:20:10 -08:00
Matt Bell
4eaf38c6ba object: Added a synopsis 2014-11-14 03:20:10 -08:00
Brian Tiger Chow
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
Brian Tiger Chow
92c168b03e fix(2/update) newlines
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:09 -08:00
Juan Batiz-Benet
e0ba14c0eb cmds2: use cmdDetails on level cmds 2014-11-14 03:20:09 -08:00
Juan Batiz-Benet
1348af01b9 cmd2: version test 2014-11-14 03:20:09 -08:00
Juan Batiz-Benet
aab1a31b1b cmds2: add fix, was not adding dirs 2014-11-14 03:20:08 -08:00
Juan Batiz-Benet
e00830332f cmds2: name synopsis. 2014-11-14 03:20:08 -08:00
Brian Tiger Chow
80dcc5d237 fix(2/version)
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
Juan Batiz-Benet
bb8d4ebd6b cmds2: cmdDetailsMap 2014-11-14 03:20:07 -08:00
Matt Bell
120ead26f4 resolve: Added a TODO 2014-11-14 03:20:06 -08:00
Matt Bell
e35453c50d mount: Cleaned up option descriptions 2014-11-14 03:20:06 -08:00
Brian Tiger Chow
a00da7b728 add debug log statement
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:06 -08:00
Juan Batiz-Benet
89ec480ef1 cmds2: bootstrap command fix add 2014-11-14 03:20:06 -08:00
Juan Batiz-Benet
047d2e2d62 cmd2: Marshaller -> Marshaler (see golang/encoding)
Also:
- map[cmds.EncodingType]cmds.Marshaller -> MarshalMap

cc @mappum @maybebtc
2014-11-14 03:20:05 -08:00
Juan Batiz-Benet
0f7757c6fa subcmd2: added synopsis to bootstrap 2014-11-14 03:20:05 -08:00
Matt Bell
2a2ec747d5 core/commands2: Removed unused options from 'config', and fixed synopsis syntax 2014-11-14 03:20:05 -08:00
Matt Bell
e700b16576 Ported remaining command helptext to HelpText struct 2014-11-14 03:20:05 -08:00
Brian Tiger Chow
6597a5f7fe fix(2/ls) require arg
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:04 -08:00
Brian Tiger Chow
131c15e924 fix(2/log) use 'all' as the specifier to set all log levels
fixes #322

cc @mappum

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:04 -08:00
Brian Tiger Chow
fb187e49e3 test(2/diag) test print diagnostics
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:04 -08:00
Matt Bell
7f24a9965f core/commands: Ported commands to use HelpText struct for helptext fields 2014-11-14 03:20:03 -08:00
Matt Bell
2dd6f24157 core/commands2: Refactored some commands to HelpText struct for helptext fields 2014-11-14 03:20:03 -08:00
Juan Batiz-Benet
1342575d24 cmds2/commands: better sorting 2014-11-14 03:20:03 -08:00
Juan Batiz-Benet
d18902df27 cmds2: changed how the ctx.Node works 2014-11-14 03:20:02 -08:00
Brian Tiger Chow
9eccce1f93 fix(2/diag) match ipfs output
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:02 -08:00
Juan Batiz-Benet
3352aeee15 cmds2: fixed show help on root + noncallable 2014-11-14 03:20:02 -08:00
Juan Batiz-Benet
c46d4c8953 cmd2 fixed config panic
The way the current marshallers marshal out output requires
a ton of error checking. I wish there was a way to have the
library call our marshaller with the right type (rather
than an interface). Maybe can do this with Reflect someday.
2014-11-14 03:20:02 -08:00
Juan Batiz-Benet
973a8f5cb1 cmds2: commands 2014-11-14 03:20:02 -08:00