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

export vorpal constant so that it may be extended #5

Merged
merged 1 commit into from
Sep 11, 2019
Merged

export vorpal constant so that it may be extended #5

merged 1 commit into from
Sep 11, 2019

Conversation

dzaman
Copy link
Contributor

@dzaman dzaman commented Sep 11, 2019

No description provided.

@darky
Copy link
Owner

darky commented Sep 11, 2019

Hello! Can you explain practical example of this?
Why it's need?

@darky darky merged commit bbe9fca into darky:master Sep 11, 2019
@dzaman
Copy link
Contributor Author

dzaman commented Sep 11, 2019

I would like to add some custom commands to bull-repl that are specific to my use-cases (e.g. execute with a dry-run flag). Now that this is exported, I can add them by making additional calls to command():

import { vorpal } from 'bull-repl/index';

vorpal.command("foo <bar> <baz>", "do the thing")
.action(async () => console.log('doing it'));

@darky
Copy link
Owner

darky commented Sep 11, 2019

@dzaman ok
Try 0.9.2

It accessible via

import { vorpal } from 'bull-repl';

If your command so helpful for community, please send PR (:

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.

None yet

2 participants