-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
gh-93096: Make mimetypes
CLI tool public
#93097
Conversation
This reverts commit 26bec36.
@arhadthedev do you have time to finish it any time soon? :) |
Notice that IANA currently uses the "media types" term:
Just an idea, feel free to ignore it: sometimes the following approach may be used to estimate |
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.
@arhadthedev Thank you for your work!
…-cli
Not sure if it's my configuration or not, but
|
Right, from the commits looks like it took a while for @arhadthedev to find a good candidate. Let's update it. @picnixz Can you find another that's not in your |
I'm no more on my Linux session, but I'll do it tomorrow. Can't we mock the array containing the files where everything is looked up? |
Yes, that sounds better than having to worry what different systems happen to have. |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
python -m mimetypes
(like https://docs.python.org/3/library/ast.html#command-line-usage and https://docs.python.org/3/library/trace.html#command-line-usage do) since it's a solid crossplatform utilitysys.exit()
for error messagespython -m mimetypes
with proper checks of stdout, stderr and return codesgh-93096