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

Fix #21242: Add REPL init script setting #22206

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

noti0na1
Copy link
Member

@noti0na1 noti0na1 commented Dec 13, 2024

Fix #21242

sbt:scala3> repl
Welcome to Scala 3.6.4-RC1-bin-SNAPSHOT-nonbootstrapped-git-20e6f11 (17.0.12, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                                                                            
scala> :reset --repl-init-script:'println("Hello from init script!")'
Resetting REPL state with the following settings:
  --repl-init-script:println("Hello from init script!")

Hello from init script!
                                                                                                                                            
scala> 

Need to update scala-cli in order to passing the flag to REPL.

@noti0na1 noti0na1 changed the title Add REPL init script setting Fix #21242: Add REPL init script setting Dec 13, 2024
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.

Add a setting/API to run a code snippet/script in the REPL on startup
1 participant