-
Notifications
You must be signed in to change notification settings - Fork 282
List plugins in help #1560
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
List plugins in help #1560
Conversation
I think this is great. One suggestion may be to call out more explicit which commands are part of a plugin. E.g.
That way if you are comparing screenshots in tutorials or somewhere else, it's clear if a comand is missing in your list, that it came from a plugin. |
|
@kate-goldenring I am really hoping I didn't leave that in the actual timer trigger sample. |
@mikkelhegn I agree identifying plugins would be good. I considered a couple of things:
I'd very much welcome insight, ideas and feedback. |
5a9928e
to
45f478e
Compare
Where this is now at: The UI looks like this (@mikkelhegn let me know if you have a preference for the bracketed form): The various combinations of plugins / flags / help options / etc. that I have tested all seem to work, though it would be great to have someone else trying to break it (and it might be good to merge it only after we cut 1.3, because if I have fouled up the entire command line then it would be good to have a bit of time to discover it). The Plugins are now considered for the "similar commands" prompt:
The commits still need squashing. Feedback and complaints very much welcome. |
I think this looks great, and gets the job done 👍🏻 |
@mikkelhegn what do you mean by highlighted? The fact that |
@itowlson should |
@mikkelhegn That said, if the goal of the asterisks is more to highlight "places where your list may be different from other people's" rather than "is implemented via a plugin" then agree, we should take the asterisk off @kate-goldenring That's a good question... this is probably an artifact of the way I implemented the asterisking system (which I guess is true of Mikkel's But yeah... I guess it comes back to "is the idea to show which commands are implemented via plugins or to show which commands may not appear in docs or on other machines." Let's define that, and maybe that will guide us on how to handle these cross-over cases. |
992ab2e
to
660c519
Compare
Thanks for the explanation @itowlson. I think the purpose should be "to show which commands are implemented via plugins". I guess for plugins we allow to overwrite commands, is that true? If so, it would be great to be able to still have the asterisk mean the same - i.e., "On this machine the following commands are handled by plugins". |
@mikkelhegn plugins cannot overwrite commands that are build into the Spin CLI. |
I agree that the indicator should be "is implemented via a plugin". i am now torn on deploy and login. It would be nice to be able to list your plugins and see by name how they map to the cli and that is not the case for deploy and login |
Given Mikkel's comment and Kate being torn, can I propose we merge this as stands, with the option to refine it before (or after) 1.4? That would give people the opportunity to shake out any bugs in parallel with UI refinement; otherwise we risk going back and forth for ages (given that every round of conversation takes 24 hours because shakes puny fist at timezones), and finally landing it without time to bake. If that is okay, it would be super helpful to get a review so we can start moving it forward. |
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.
LGTM! I agree with @itowlson that it's probably best to merge now and tease out the desired enhancements before 1.4
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.
Very nifty use of adding commands to clap! LGTM
Signed-off-by: itowlson <[email protected]>
660c519
to
77d3d09
Compare
This is an experiment to see if people like this experience or not. Here's what it looks like on the proverbial my machine:
At the moment, I expect there to be a bug when the
cloud
plugin is installed, since that's a legit command as well. I have a feeling I can solve this by steeples fingers abolishing thecloud
command and just always injecting the help entry - because Kate has put all the magic into theexternal
side rather than the command side, I think it will behave correctly even if no actualCloudCommand
exists. But I will investigate that if we decide to go forward with this; one way or another it will be fixable.