Last active
November 12, 2015 21:06
-
-
Save chrisbolin/e63c0d90d5d73a566159 to your computer and use it in GitHub Desktop.
Revisions
-
chrisbolin revised this gist
Nov 12, 2015 . No changes.There are no files selected for viewing
-
chrisbolin created this gist
Nov 12, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ var repl = require('repl'), keystone = require('keystone'); module.exports = function(done) { var shell = repl.start({ prompt: 'keystone > ' }); // expose keystone to the shell shell.context.keystone = keystone; // stop headstone on shell exit shell.on('exit', function(){ console.info('exiting keystone shell...'); done(); }); }; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ # npm install --global headstone headstone shell.js