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

Setting/filtering output #30

Open
zumbalogy opened this issue Feb 23, 2015 · 1 comment
Open

Setting/filtering output #30

zumbalogy opened this issue Feb 23, 2015 · 1 comment

Comments

@zumbalogy
Copy link

These are feature requests that I would like to see (or know about if they already exist). If I get the time, I may work on them myself and post or PR.

Both features could be implemented by setting up a filter on all return statements.

I would like to truncate some of my error messages (ReferenceError: foo is not defined could be under 5 lines, for me, for example). I would also like to define a prompt for returned statements. It could look something like:

my_prompt> 2 + 2
=> 4

where '=>' is defined by the user.

@danielgtaylor
Copy link
Owner

This sounds like it should be possible via a plugin. Take a look at the README and the example plugins that are both included with Nesh and the ones others have published on npm. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants