-
Notifications
You must be signed in to change notification settings - Fork 308
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
Create ux.notify plugin or native command in oclif #1301
Comments
@AllanOricil The And so one of my goals in the next major version of oclif/core is to remove the majority of the methods on I mention this because, I don't think that adding a That being said, I'm going to close this as |
I think you could make I would implement notify in it anyways because it is a way of saying: "Hey, this oclif module called @oclif/ux has all the ux compatible libraries with oclif. You can of course use your desirable lib, but there is not garantee it will work" Or in more technical words, but not quite "Those vendor libraries were successfully integrated with oclif. It is safe to use on your cli" This You don't need to really maintain it, it will work as a way to ensure that oclif builds with @oclif/ux (integrates with no problem with it).
For example https://github.com/salesforce/lwc-test/blob/master/package.json#L32 |
@AllanOricil That was the original design with the Regardless, I find it problematic to pre-select the packages that developers would like for their user experience since oclif is meant to be ux-agnostic.
What makes some libraries compatible with oclif and others not? I'm struggling to think of a reason why a library would be deemed "incompatible" with oclif. |
@mdonnalley (cli) A -> B (@oclif/ux) -> C (vendor)
// if B does not do anything, then
(cli) A ----------------> C (vendor) The only reasons that I could think for having B is if:
If 1 and 2 are not requirements then B is useless. If you plan to get rid of it, it is better not to implement |
Do you want to request a feature or report a bug?
feature, and I can implement it if you find people who would want it.
What is the current behavior?
some long commands can usually take a lot of time to run, and developers would like to leave them running and come back only when a notifications appears. Some use cases:
What is the expected behavior?
Instead of every single cli developer create its own notification system, I thought that this could be an oclif native, or plugin, module that extends the ux core module. Currently there is no
ux.notify
command in the available api.https://github.com/oclif/core/tree/main/src/cli-ux
Possible solution
suggested library:
https://www.npmjs.com/package/node-notifier
vulnerabilities:
https://security.snyk.io/package/npm/node-notifier
optional props are just the props that
node-notifier
uses:Maybe just a whole wrapper around
node-notifier
would already suffice.The text was updated successfully, but these errors were encountered: