Matt Bell
7a4491ada3
Added --mount flag to mount when running 'ipfs daemon'
2014-11-18 03:31:32 -08:00
Matt Bell
a0bd29d5be
core/commands2: Fixed swarm command for new arguments API
2014-11-18 02:16:30 -08:00
Matt Bell
0709621a2c
core/commands2: Updated id command for new argument API
2014-11-18 02:13:57 -08:00
Matt Bell
bde015616f
core/commands2: add: Handle 'addDagnode' errors
2014-11-18 02:13:56 -08:00
Matt Bell
bfdf7951b3
core/commands2: Use path.Split for path parsing in 'add'
2014-11-18 02:13:56 -08:00
Matt Bell
d1f1d2f5bf
core/commands2: Fixed commands to use string arguments
2014-11-18 02:13:55 -08:00
Matt Bell
032e9c292f
core/commands2: Updated 'add' command for new file API
2014-11-18 02:13:54 -08:00
Matt Bell
fe6ac42c0e
core/commands2: Updated 'add' command for request file API
2014-11-18 02:13:54 -08:00
Matt Bell
052d387ae5
core/commands2: Fixed 'block' command for req.Files() API
2014-11-18 02:13:53 -08:00
Juan Batiz-Benet
81135f3dc2
added ipfs swarm connect
2014-11-18 01:47:01 -08:00
Juan Batiz-Benet
4d78c2d7ff
cmds: swarm peer
2014-11-18 00:48:03 -08:00
Juan Batiz-Benet
21d2838d4f
cmds/id: fixed args + err checks
2014-11-17 23:46:46 -08:00
Juan Batiz-Benet
f47b4f1799
Merge pull request #255 from jbenet/id-cmd
...
basic ID cmd
2014-11-17 23:23:06 -08:00
Juan Batiz-Benet
6107612fd0
Merge pull request #355 from jbenet/feat/daemon-init
...
feat(daemon) `ipfs daemon --initialized`
2014-11-17 23:22:01 -08:00
Juan Batiz-Benet
d93e49e06e
fix node context (tests pass)
2014-11-17 22:50:01 -08:00
Brian Tiger Chow
24f0fa0fde
delegate teardown
...
this is silly but whatever
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-17 22:36:19 -08:00
Brian Tiger Chow
ef65bb1ce3
revert to debug error
...
@jbenet
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-17 22:36:18 -08:00
Brian Tiger Chow
2bbfe4d56f
debug(core, datastore, daemon) wrap errors
...
@jbenet @whyrusleeping @mappum
very helpful for tracking down errors. the stack traces are only
shown when debug mode is visible. They function best when caught at the
source.
I propose we use this errors package as a drop-in replacement for
fmt.Errorf and errors.New in all of our code, and use errors.Wrap for
external errors as they emerge from others' libraries.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Signed-off-by: Brian Tiger Chow <brian.holderchow@gmail.com>
2014-11-17 22:36:18 -08:00
Brian Tiger Chow
bacf3ecc6a
feat(util) add datastore Closer Wrapper
...
@jbenet
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-17 22:36:17 -08:00
Jeromy
7d2f3d810c
fix tabbing
2014-11-17 11:57:57 -08:00
Jeromy
4588732af3
address comments from PR
2014-11-17 10:27:41 -08:00
Brian Tiger Chow
f26388e0e5
fix(core) tear-down leveldb
...
@jbenet @whyrusleeping @mappum
If we permit initialization in `ipfs daemon`, then we must ensure that
the node instantiated in `ipfs init` (to create the welcome file) shuts
down and releases resources.
Kept running into "resource temporarily unavailable". Discovered that it
was our cousins Jeff and Sanjay over at LevelDB Ave.
go-datastore doesn't expose Close() so I extended the TsDs interface and
submitted a patch.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Signed-off-by: Brian Tiger Chow <brian.holderchow@gmail.com>
2014-11-17 00:44:18 -08:00
Jeromy
9f4127aefa
fix variable naming
2014-11-16 17:12:35 -08:00
Jeromy
0de12b5d36
implement ipfs id in the new commands library
2014-11-16 16:46:06 -08:00
Christian Couder
46d8acf60f
Add missing 'mount' in mount synopsis
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-16 21:04:53 +01:00
Christian Couder
5098e39203
Suggest use of ipfs daemon in mount help message
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-16 18:14:27 +01:00
Brian Tiger Chow
a11c59dcac
feat(peer) add Type (Unspecified, Local, Remote)
2014-11-16 07:00:58 -08:00
Brian Tiger Chow
ac84515441
style(core_test) move test variable
2014-11-16 07:00:28 -08:00
Brian Tiger Chow
05346dd927
misc(core/identity) more specific function argument
...
to aid in testing
2014-11-16 07:00:28 -08:00
Brian Tiger Chow
1ed0850ce2
style(core) peer -> self
2014-11-16 07:00:28 -08:00
Jeromy
f45d575a96
address comments from PR
2014-11-16 02:45:20 -08:00
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