You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugins don't seem to be friendly to function-aliases that take spread args, and typing prometheus isn't as cool as typing p8s. Would love to see the plugin export the latter in addition to the former if possible.
Thanks for the plugin in any case! I'm excited to start using it.
The text was updated successfully, but these errors were encountered:
Ugh, I'm not sure about this. Before digging into the details you linked I thought "I'd rather help fix this in nushell", but it seems that's not very easy because of the spread args problem.
It seems that either allowing spread args in the plugin command signatures or exporting a p8s alias would require duplication of each impl SimplePluginCommand. This is reasonable to accomplish with a macro, but I'm not fond of it.
Did you get anywhere with this suggestion to individually alias each command starting with prometheus ?
No, I didn't even try. 🙃 p8s is one of those things I use in spurts, and I was in one when I bounced this over to you. I'm off on other projects for a while, so it's lower priority. I guess what I'd say is if you can find a way to do it, that would be awesome. If not, no harm done, and I appreciate you looking at it. 😄
I myself don't use my plugin very often, and often rely on tab-completion to remember the arguments. I'll leave it open for a while as a reminder to see if there's a way to do this easier than what nushell currently offers.
Re: this discussion on the nushell repo
Plugins don't seem to be friendly to function-aliases that take spread args, and typing
prometheus
isn't as cool as typingp8s
. Would love to see the plugin export the latter in addition to the former if possible.Thanks for the plugin in any case! I'm excited to start using it.
The text was updated successfully, but these errors were encountered: