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 help command #727

Closed
wilcoxmd opened this issue Jun 4, 2024 · 0 comments · Fixed by #728
Closed

Export help command #727

wilcoxmd opened this issue Jun 4, 2024 · 0 comments · Fixed by #728

Comments

@wilcoxmd
Copy link

wilcoxmd commented Jun 4, 2024

Overview
Hi! I'm trying to bundle an oclif CLI, and would like to be able to use the help plugin. Based on this example, it seems like we need to be able to import the help command and then re-export it in order to accomplish this.

Currently, this doesn't seem possible because the @oclif/plugin-help package only exports an empty object, rather than any command classes.

Describe the solution you'd like
I'd like to update @oclif/plugin-help to export a commands object containing the help command. There is prior art for this in @oclif/plugin-plugins to follow.

Describe alternatives you've considered
I'm not sure there is another alternative if we want to bundle the help command, but if you see another path, please let me know!

Additional context
Figured I'd open an issue before attempting the change in case there is context I need to be aware of. Happy to help, just let me know if you all are open to this!

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 a pull request may close this issue.

1 participant