summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-02-03 10:37:21 +0100
committerSamy Pessé <samypesse@gmail.com>2015-02-03 10:37:21 +0100
commitfd78a06b11ebdd4df163666c6fe2ba9dbf9b8486 (patch)
treeced3f68333b23b05563408c9a534fac63b234048
parent80efc8e086b69634841411baa8be2b9002c3e65a (diff)
downloadgitbook-fd78a06b11ebdd4df163666c6fe2ba9dbf9b8486.zip
gitbook-fd78a06b11ebdd4df163666c6fe2ba9dbf9b8486.tar.gz
gitbook-fd78a06b11ebdd4df163666c6fe2ba9dbf9b8486.tar.bz2
Add message in gitbook command line
-rwxr-xr-xbin/gitbook.js7
-rw-r--r--package.json3
2 files changed, 10 insertions, 0 deletions
diff --git a/bin/gitbook.js b/bin/gitbook.js
new file mode 100755
index 0000000..1487f52
--- /dev/null
+++ b/bin/gitbook.js
@@ -0,0 +1,7 @@
+#! /usr/bin/env node
+
+var color = require('bash-color');
+
+console.log(color.red("You need to install 'gitbook-cli' to have access to the gitbook command anywhere on your system."));
+console.log(color.red("If you've installe this package globally, you need to uninstall it."));
+console.log(color.red(">> Run 'npm uninstall -g gitbook' then 'npm install -g gitbook-cli'"));
diff --git a/package.json b/package.json
index 01aa895..75e4fe0 100644
--- a/package.json
+++ b/package.json
@@ -48,6 +48,9 @@
"type": "git",
"url": "https://github.com/GitbookIO/gitbook.git"
},
+ "bin": {
+ "gitbook": "./bin/gitbook.js"
+ },
"keywords": [
"git",
"book",