Skip to content

Commit

Permalink
improve messaging on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Feb 22, 2016
1 parent a35db28 commit 2903bea
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 2903bea

Please sign in to comment.