-
Notifications
You must be signed in to change notification settings - Fork 138
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
Add support for running script files with no extension using shebang subcommand #1802
Conversation
e4a0031
to
cf5526f
Compare
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.
Documentation and guide for shebang should be also updated.
modules/cli/src/main/scala/scala/cli/commands/shared/SharedOptions.scala
Outdated
Show resolved
Hide resolved
modules/integration/src/test/scala/scala/cli/integration/RunScriptTestDefinitions.scala
Outdated
Show resolved
Hide resolved
1879288
to
3ca43db
Compare
0ce1a41
to
aa4eaca
Compare
modules/build/src/main/scala/scala/build/preprocessing/SheBang.scala
Outdated
Show resolved
Hide resolved
modules/integration/src/test/scala/scala/cli/integration/RunScriptTestDefinitions.scala
Show resolved
Hide resolved
aa4eaca
to
3aed7a6
Compare
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.
LGTM
modules/integration/src/test/scala/scala/cli/integration/RunScriptTestDefinitions.scala
Show resolved
Hide resolved
modules/integration/src/test/scala/scala/cli/integration/RunScriptTestDefinitions.scala
Outdated
Show resolved
Hide resolved
modules/integration/src/test/scala/scala/cli/integration/RunScriptTestDefinitions.scala
Outdated
Show resolved
Hide resolved
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.
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.
3a2fdde
to
17a272c
Compare
17a272c
to
5d19c8d
Compare
…subcommand (VirtusLab#1802) * Add support of running script files with no extension using shebang subcommand * Update documentation of shebang command and scripts
…subcommand (VirtusLab#1802) * Add support of running script files with no extension using shebang subcommand * Update documentation of shebang command and scripts
Resolves #466