scala-cli
scala-cli copied to clipboard
Customisable prompt in repl
Is your feature request related to a problem? Please describe.
Scala CLI offers easy access to Scala repl based on multiple versions of Scala and it may be a bit confusing once inside the repl which version is used. Also, some people would like to configure their prompt differently, especially if scala-cli would be used as building block of some other tool.
Describe the solution you'd like
Having an option to specify a prompt to repl as a command-line option would be really helpful. Also by default, the major and minor of Scala version could be add the prompt, so for 2.13.8
it would look like this: scala 2.13 >
Describe alternatives you've considered
Addiitonaly repl information about version and context can be print when repl start but with longer debugging sessions it will quickly move away from a sight.
Additional context
Repl coming from Scala 2 and Scala 3 does not have an option to specify the prompt so for now it may only work in the ammonite.
Based on the tweet.