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
{{ message }}
Repository navigation
from <format> commands (make <format> a subcommand of from) #955
Is your feature request related to a problem? Please describe.
I wouldn't call it a problem as much as a quality of life-issue. When using the various from-x commands, the hyphen takes more work to type than a space.
Describe the solution you'd like
I'd like to be able to use the various formats as subcommands of a general from command, so that I could drop the hyphen. E.g.: open file | from csv --headerless , fetch url | from json, etc.
The various subcommands would take their regular args as per usual.
Hmm, interesting. How does the parse command work? I can't find any clear docs for it, and I'm not sure where to find any describing tests. A quick grep didn't give me much.
But anyway, yeah, that sounds like a good idea to me!
Activity
sophiajt commentedon Nov 12, 2019
👍
I definitely think we should consolidate them into one command and make the different ones add a subcommand to the main command.
One possibility - we could piggyback on the new
parsecommand. This would give you a verb to work from. Same idea:The current
parsecommand could be another subcommand:thomasheartman commentedon Nov 20, 2019
Hmm, interesting. How does the parse command work? I can't find any clear docs for it, and I'm not sure where to find any describing tests. A quick grep didn't give me much.
But anyway, yeah, that sounds like a good idea to me!
jzaefferer commentedon May 4, 2020
I think this is actually fixed by #1708 - as suggested, not using
parse.parseis still missing docs, and the built-in helphelp parsedoesn't explain enough.thegedge commentedon May 5, 2020
Yep, agreed this issue itself has been closed (and thank you, @jzaefferer for taking care of the documentation! ❤️).
I'll add an issue to document the parse command.
Update reedline to race-condition-free history (nushell#955)
Update reedline to race-condition-free history (#955)
Add Nushell Language detect for linguist (nushell#955)