Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make interactive shell easily available when installing via npm #330

Merged
merged 3 commits into from
Mar 14, 2020
Merged

Make interactive shell easily available when installing via npm #330

merged 3 commits into from
Mar 14, 2020

Conversation

ErwanDL
Copy link
Contributor

@ErwanDL ErwanDL commented Nov 15, 2019

Following our discussion on #329, I made the interactive shell available as a command-line tool when installing rivescript-js via npm (there was actually very little change to make, only a few additions to package.json). I chose to call the associated command "riveshell", tell me if you'd prefer another name.

It can be called via $ npx riveshell /path/to/brain when the package is installed locally, or simply $ riveshell /path/to/brain when installed globally. I ensured that the command works properly both on macOS (bash) and Windows (cmd, powershell and git-bash).

I also updated the README.md file and the doc at the top of shell.js to reflect this new feature. I moved the "Installation" section of the README above the "Usage" section because I assume that people should already have installed the package before reading the details on how to use the interactive shell.

@ErwanDL
Copy link
Contributor Author

ErwanDL commented Mar 14, 2020

Hi @kirsle do you think this PR could be merged anytime soon ? 😃

@kirsle kirsle merged commit 0fbf048 into aichaos:master Mar 14, 2020
@kirsle
Copy link
Member

kirsle commented Mar 14, 2020

Hi @ErwanDL

I've merged this now and published it as v2.1.0 on npm. 😄 Thanks!

@ErwanDL ErwanDL deleted the make-shell-available-via-npm branch March 19, 2020 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants