-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: export Ux and add configAggregator to SfCommand #106
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConfigAggregator seems important enough to add to the readme or docs somewhere, especially the odd behavior with trying to figure out your CLI in real life OR running locally and treating it like sf.
Ex: how would you write a NUT test to check that you've correctly implemented sfdx
behavior? Or just say you can't?
Next: does the ux/ux class need some typedoc since it's exported now? Maybe some example code for how a Command might pass its jsonEnabled state to a helper that uses this class?
Finally, do we want to help people not use this in a command (linter considerations) to encourage them to use the this.foo
for ux? Or would that be fine if they did?
QA notes 2: ❓ previous issues are fixed. I tried flag aliases--via bin/dev it worked seamlessly, but I was surprised NOT to get a warning in either stdout or jsonOuput,warnings. Maybe the use case for aliases is broader (convenience, not just backward compatibility) so that makes sense? ✅ passing a constructed |
Ux
classspinner
andprompter
instances toUx
configAggregator
property to SfCommandConfigAggregator
unlessthis.config.bin === 'sfdx'
, in which case it's aSfdxConfigAggregator
@W-11910294@