Brian Tiger Chow
8d4c21694c
fix
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-17 22:36:19 -08:00
Brian Tiger Chow
7cebc3cc38
inline prints
...
looking forward to fixing these again
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
d0a3f9ba9a
feat(2/init) expose init with defaults
...
will support daemon initialization
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
# TYPES
# feat
# fix
# docs
# style (formatting, missing semi colons, etc; no code change):
# refactor
# test (adding missing tests, refactoring tests; no production code change)
# chore (updating grunt tasks etc; no production code change)
Signed-off-by: Brian Tiger Chow <brian.holderchow@gmail.com>
2014-11-17 22:36:18 -08:00
Brian Tiger Chow
6a380ff532
refactor(2/init) use util.FileExists
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
# TYPES
# feat
# fix
# docs
# style (formatting, missing semi colons, etc; no code change):
# refactor
# test (adding missing tests, refactoring tests; no production code change)
# chore (updating grunt tasks etc; no production code change)
Signed-off-by: Brian Tiger Chow <brian.holderchow@gmail.com>
2014-11-17 22:36:18 -08:00
Brian Tiger Chow
c883f7dc36
refactor(2/init) extract const
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
# TYPES
# feat
# fix
# docs
# style (formatting, missing semi colons, etc; no code change):
# refactor
# test (adding missing tests, refactoring tests; no production code change)
# chore (updating grunt tasks etc; no production code change)
Signed-off-by: Brian Tiger Chow <brian.holderchow@gmail.com>
2014-11-17 22:36:18 -08:00
Brian Tiger Chow
cf8fb87df1
refactor(errors) debugerror -> errors
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-17 00:44:18 -08:00
Brian Tiger Chow
c4ea0b78ba
fix(2/init) msg
...
@jbenet i presume you prefer it without the period
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 08:28:08 -08:00
Brian Tiger Chow
c8c062fe13
refactor(config/init) add hooks to identity generation. useful for displaying messages to the user
...
@jbenet this commit re-introduces the peer identity line. It's very
useful. I understand it may have been removed because of the clashing of
the IDs. To alleviate this, this commit places some negative space
between the two lines.
'to test' -> 'to get started' as a stronger call to action
```
λ. ipfs2 init -f
initializing ipfs node at /Users/btc/.go-ipfs
generating key pair...done.
peer identity: QmWzjxNEYKjDAxuHJqvtLP1dZTDjreBSUsArWoHai1v9yP
to get started, enter: ipfs cat QmYpv2VEsxzTTXRYX3PjDg961cnJE3kY1YDXLycHGQ3zZB
```
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 08:13:26 -08:00
Brian Tiger Chow
02d8da09ae
fix(2/init) message displayed during init
...
TODO use a writer to get the command output
resulting appearance:
```
go-ipfs (feat/machine-readable-logging) λ. make install_2; ipfs2 init -f
cd cmd/ipfs2 && go install
initializing ipfs node at /Users/btc/.go-ipfs
generating key pair...
peer identity: %s QmcPLgrqfvnneJ3vr3oGpkTiS9Psx8p3HxevjnoZYToDRm
```
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 07:01:01 -08:00
Brian Tiger Chow
3a927cbcec
feat(init) init logs upon config initialization
...
TODO allow user dir override
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
# TYPES
# feat
# fix
# docs
# style (formatting, missing semi colons, etc; no code change):
# refactor
# test (adding missing tests, refactoring tests; no production code change)
# chore (updating grunt tasks etc; no production code change)
Signed-off-by: Brian Tiger Chow <brian.holderchow@gmail.com>
2014-11-16 07:01:00 -08:00
Brian Tiger Chow
d28c9cc7b4
refactor(init) extract initCheckDir function
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
# TYPES
# feat
# fix
# docs
# style (formatting, missing semi colons, etc; no code change):
# refactor
# test (adding missing tests, refactoring tests; no production code change)
# chore (updating grunt tasks etc; no production code change)
2014-11-16 07:01:00 -08:00
Juan Batiz-Benet
ab09c3649c
defaulthash: let's not ignore errors
...
@maybebtc fixed it. cc @whyrusleeping
2014-11-15 22:55:58 -08:00
Juan Batiz-Benet
7596bcce2d
cleaned up ipfs init
2014-11-15 22:50:42 -08:00
Jeromy
e857a5bc9f
move default hash into ipfs2, committed on freemont troll
2014-11-15 18:28:54 -08:00
Matt Bell
e700b16576
Ported remaining command helptext to HelpText struct
2014-11-14 03:20:05 -08:00
Brian Tiger Chow
7060e7dfe2
rename variable
2014-11-14 03:19:58 -08:00
Brian Tiger Chow
013d98a35a
fix(2/init, 2/add) fix optionvalue signature
2014-11-14 03:19:58 -08:00
Matt Bell
17c5923160
core/commands2: Fixed init option definition
2014-11-14 03:17:38 -08:00
Matt Bell
3e507f7c9f
commands: Changed option accessor API (Request#Option now returns an OptionValue)
2014-11-14 03:17:38 -08:00
Matt Bell
8ee3e996cc
core/commands2: Use Option constructors in commands
2014-11-14 03:17:37 -08:00
Matt Bell
3e30093c2b
core/commands2: Updated commands to new Run function API
2014-11-14 03:17:37 -08:00
Brian Tiger Chow
38a6d0ead0
fix(init) version
2014-11-14 03:17:36 -08:00
Brian Tiger Chow
8ffd27a6e1
fix(init) inline bootstrap peers
2014-11-14 03:17:36 -08:00
Matt Bell
2b8ef917b8
cmd/ipfs2: Added descriptions for 'init', 'tour'
2014-11-14 03:17:33 -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
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
Brian Tiger Chow
faf6454df6
refactor(init) extract method
2014-11-14 03:17:24 -08:00
Matt Bell
cac8844b8d
cmd/ipfs: Reverted back to secondary CLI root command
2014-11-14 03:17:21 -08:00
Matt Bell
9356e1a0a1
cmd/ipfs: Moved private commands to core/commands2
2014-11-14 03:17:21 -08:00
Matt Bell
9fb20dabb3
cmd/ipfs2: Added init command
2014-11-14 03:17:20 -08:00
Brian Tiger Chow
3d9331512d
move originals back to ipfs
2014-11-14 03:16:05 -08:00
Brian Tiger Chow
bc6800035b
move ipfs commands
2014-11-14 03:16:00 -08:00