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

Enable direct usage of --repl-init-script with Scala REPL >= 3.6.4-RC1 #3447

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Jan 21, 2025

A follow-up to scala/scala3#21242

Meant to clear-up confusion like in https://contributors.scala-lang.org/t/scala-3-6-4-release-thread/7010/2

This adds some docs and improves the UX of --repl-init-script, enabling it to be used directly with the REPL, rather than after -- or with -O.

scala-cli repl -S 3.6.4-RC1 --repl-init-script 'println("Hello")'
# Hello
# Welcome to Scala 3.6.4-RC1 (23.0.1, Java OpenJDK 64-Bit Server VM).
# Type in expressions for evaluation. Or try :help.
#                                                                                                                  
# scala> 

cc @noti0na1 @bjornregnell

@Gedochao Gedochao added this to the v1.6.1 milestone Jan 21, 2025
@Gedochao Gedochao enabled auto-merge (squash) January 21, 2025 12:08
@Gedochao Gedochao merged commit 60d17b6 into VirtusLab:main Jan 21, 2025
72 of 77 checks passed
@Gedochao Gedochao deleted the feature/repl-init-script branch January 24, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants