Skip to content
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

Teach Github linguist about rust-script file #87

Closed
azzamsa opened this issue Mar 31, 2023 · 2 comments
Closed

Teach Github linguist about rust-script file #87

azzamsa opened this issue Mar 31, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@azzamsa
Copy link

azzamsa commented Mar 31, 2023

Hi.

GitHub is able to count the percentage of shell files even if they don't have .sh or simmilar extenison.

image

image

Is it possible for us to teach GitHub about rust-script file based on #!/usr/bin/env rust-script even if it doesn't have .rs extension?

image

I think we should start from Adding an extension to a language in linguist/CONTRIBUTING.md

Thank you for rust-script ❤️

@fornwall
Copy link
Owner

fornwall commented Apr 1, 2023

Thanks for the suggestion!

I created github-linguist/linguist#6354 - let's see what the maintainers say.

@fornwall
Copy link
Owner

fornwall commented Apr 4, 2023

This is on track to be included in the next linguist release - github-linguist/linguist#6354 (review).

Closing this as the work has been done, follow github-linguist/linguist#6354 for progress updates.

Once again, thanks for the suggestion @azzamsa !

@fornwall fornwall closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants