Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b452338

Browse files
committed
Improve CLI output
1 parent fbd5cfa commit b452338

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/file-feed/complete/src/ff-cli/add-file.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ const readFileContents = require('./read-file-contents')
88
const nodeOptions = require('./node1.config.js')
99

1010
function addFile (feed, fileToAdd) {
11+
console.log('Connecting to go-ipfs daemon...')
1112
const node = ipfsApi('localhost', 5001)
1213

14+
console.log('Initialize OrbitDB')
1315
const orbitdb = new OrbitDB(node)
1416
const db = orbitdb.eventlog(feed, { cachePath: nodeOptions.orbitdbPath })
1517

1618
db.events.on('ready', () => {
17-
console.log('Database ready.')
19+
console.log('Database ready')
1820
console.log()
1921
console.log('Searching for peers...')
2022

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict'
22

33
module.exports = {
4-
path: './ff-cli-data/node1/ipfs',
5-
orbitdbPath: './ff-cli-data/node1/orbitdb',
6-
signalAddr: '/dns4/star-signal.cloud.ipfs.team'
4+
orbitdbPath: './cli-data/node1/orbitdb'
75
}

0 commit comments

Comments
 (0)