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

Add support for running script files with no extension using shebang subcommand #1802

Merged

Conversation

MaciejG604
Copy link
Contributor

Resolves #466

@MaciejG604 MaciejG604 self-assigned this Jan 23, 2023
@MaciejG604 MaciejG604 changed the title Add support of running script files with no extension using shebang subcommand Add support for running script files with no extension using shebang subcommand Jan 23, 2023
@MaciejG604 MaciejG604 force-pushed the shebang-run-files-without-extensions branch 2 times, most recently from e4a0031 to cf5526f Compare January 23, 2023 11:44
Copy link
Contributor

@lwronski lwronski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation and guide for shebang should be also updated.

@MaciejG604 MaciejG604 force-pushed the shebang-run-files-without-extensions branch 2 times, most recently from 1879288 to 3ca43db Compare January 24, 2023 09:16
@MaciejG604 MaciejG604 force-pushed the shebang-run-files-without-extensions branch 6 times, most recently from 0ce1a41 to aa4eaca Compare January 25, 2023 08:22
@MaciejG604 MaciejG604 force-pushed the shebang-run-files-without-extensions branch from aa4eaca to 3aed7a6 Compare January 25, 2023 10:08
Copy link
Contributor

@Gedochao Gedochao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@julienrf julienrf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this issue!

Regarding the documentation, I wonder if the “shebang” guide and the “scripts” guide should be merged? At least, I would expect the information that files with no extension are supported to be mentioned in the scripts guide.

I think it is important also to highlight better that the semantics of files with no extension is always a “script” semantics, not a “program” semantics.

@MaciejG604 MaciejG604 force-pushed the shebang-run-files-without-extensions branch 3 times, most recently from 3a2fdde to 17a272c Compare January 26, 2023 12:50
@MaciejG604 MaciejG604 force-pushed the shebang-run-files-without-extensions branch from 17a272c to 5d19c8d Compare January 26, 2023 14:53
@MaciejG604 MaciejG604 merged commit 7abec7d into VirtusLab:main Jan 27, 2023
@Gedochao Gedochao added enhancement New feature or request SIP-46 All the issues related to SIP-46 to turn Scala CLI into the official scala runner command. labels Jan 27, 2023
lwronski pushed a commit to lwronski/scala-cli that referenced this pull request Feb 9, 2023
…subcommand (VirtusLab#1802)

* Add support of running script files with no extension using shebang subcommand

* Update documentation of shebang command and scripts
tgodzik pushed a commit to tgodzik/scala-cli that referenced this pull request Feb 13, 2023
…subcommand (VirtusLab#1802)

* Add support of running script files with no extension using shebang subcommand

* Update documentation of shebang command and scripts
@MaciejG604 MaciejG604 deleted the shebang-run-files-without-extensions branch February 21, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SIP-46 All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow executable scripts to not have any suffix (.sc or .scala) at all?
4 participants