Skip to content

Conversation

@pielas
Copy link
Contributor

@pielas pielas commented Dec 30, 2025

No description provided.

@pielas pielas changed the title [WIP] Scala cli single file mode Scala cli single file mode Jan 5, 2026
@pielas pielas requested a review from adamw January 5, 2026 09:30
@@ -0,0 +1,43 @@
## Quick start
Copy link
Member

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 ;)

Copy link
Contributor Author

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

Copy link
Member

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?

Copy link
Contributor Author

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 :)

@adamw
Copy link
Member

adamw commented Jan 5, 2026

Do you think there's any point in keeping the multi-file scala-cli? I think it might just be confusing

@pielas
Copy link
Contributor Author

pielas commented Jan 5, 2026

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

@pielas pielas requested a review from adamw January 5, 2026 12:43
@adamw adamw merged commit b801961 into main Jan 5, 2026
40 checks passed
@adamw adamw deleted the scala-cli-single-file-mode branch January 5, 2026 15:07
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.

3 participants