Skip to content

Commit

Permalink
Merge pull request #46 from diasdavid/improve/messaging
Browse files Browse the repository at this point in the history
improve messaging on publish
  • Loading branch information
daviddias committed Feb 22, 2016
2 parents a35db28 + 2903bea commit 6670d7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cli/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,19 @@ module.exports = Command.extend({
})[0]

if (duplicate) {
console.log('this version (' + duplicate.hash + ') was already published on', duplicate.timestamp)
console.log('This version (' + duplicate.hash + ') has already been published on:', duplicate.timestamp)
return
}

var version = {
hash: hash,
timestamp: new Date()
}
console.log(version)

console.log('published', config.path, version.hash)
console.log('Published', config.path, 'with the following hash:', version.hash)
console.log('You can access it through your local node or through a public IPFS gateway:')
console.log('http://localhost:8080/ipfs/' + version.hash)
console.log('http://ipfs.io/ipfs/' + version.hash)

config.versions.push(version)

Expand Down

0 comments on commit 6670d7a

Please sign in to comment.