-
Notifications
You must be signed in to change notification settings - Fork 5
Scala cli single file mode #868
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
Conversation
| @@ -0,0 +1,43 @@ | |||
| ## Quick start | |||
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.
if we're aiming at a single file, shouldn't this be part of the single file? maybe made a bit shorter ;)
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.
I trimmed README to
// Single-file Scala CLI project
// Run: scala-cli --power run light-mockingbird.scala
// Compile: scala-cli --power compile light-mockingbird.scala
// Format: scala-cli --power fmt light-mockingbird.scala
//
// More info: https://tapir.softwaremill.com | https://scala-cli.virtuslab.org
and included on top of generated file
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.
Awesome :) I guess we could use /* */ for multi-line comments? Also do we need the --power to run the example?
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.
I used /* */, but it turned out that with these style of comments I had to move dependencies to the top of the file. I also removed --power. I kept it there because I didn't really knew why it was needed there in the first place :)
|
Do you think there's any point in keeping the multi-file scala-cli? I think it might just be confusing |
I left it there because "why not have both", but maybe indeed it doesn't make too much sense. I removed multi-file scala-cli mode |
No description provided.