From 2903bea81339171c07fcbf0ddf018b14138a32b0 Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 22 Feb 2016 16:44:49 +0000 Subject: [PATCH] improve messaging on publish --- src/cli/commands/publish.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/cli/commands/publish.js b/src/cli/commands/publish.js index 8233272..ee30ca0 100644 --- a/src/cli/commands/publish.js +++ b/src/cli/commands/publish.js @@ -32,7 +32,7 @@ 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 } @@ -40,9 +40,11 @@ module.exports = Command.extend({ 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)