go-ipfs-config: cmds: use Executors

- some fixes for cmds1.0
- reinsert plugin loading code, pretty print wrapper

TODO:
if plugin loading fails it only calls log.Warning.
returning an error would be better but that would have
to happen after PreRun, which is not possible atm.

License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
This commit is contained in:
keks 2017-12-07 19:33:25 +01:00 committed by Jeromy
parent cdb9c2f316
commit 60e814bc83

View File

@ -25,6 +25,11 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
datastore := DefaultDatastoreConfig()
conf := &Config{
API: API{
HTTPHeaders: map[string][]string{
"Server": {"go-ipfs/" + CurrentVersionNumber},
},
},
// setup the node's default addresses.
// NOTE: two swarm listen addrs, one tcp, one utp.