scala-cli
scala-cli copied to clipboard
No equivalent to `-decompile` and `-print-tasty` scalac sub-commands
Is your feature request related to a problem? Please describe.
If Scala CLI should eventually replace all scala scripts - then it should implement the -decompile
and -print-tasty
modes from the scalac
script - which run a different main method depending on the choice.
These commands basically decompile TASTy code into either readable code, or a textual representation of the TASTy bytes.
Describe the solution you'd like re-implement the flags, or add some new sub commands
Describe alternatives you've considered rely on power users to use another tool, (e.g. coursier) to directly launch the main method from the compiler classpath for either decompile/tasty-print
Additional context This feature is pretty useful to power users.