-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add list-formats
subcommand to show support-status of each format, with optional JSON output
#562
Comments
Did you find a use case for the Could be useful for people who are writing scripts to benchmark all formats and/or the combination of them to see if they produce any valuable results. But I wonder if it wouldn't be easier to just copy the output of such a command, instead of parsing the JSON output. |
Yeah actually no strong feeling about this, I got hyped by nushell and how everything is structured but I don't have clear use case |
It would be particularly useful for a subcommand like this to output MIME types. It would also be preferable that running this subcommand would be extremely quick (which I imagine would be possible by pre-compiling the list of supported formats). My use case is that I have a preview script that I use for a TUI file manager, and within that script I need to determine which program to call in order to preview a file (which I currently do by matching on the file's MIME type). |
Hello!
I'd like to have a way to introspect
ouch
and what it currently supports.And with an optional
--json
to be able to write some wrapper scripts that can act based on format support.What do you think about this?
The text was updated successfully, but these errors were encountered: