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
Support for new command #2202
Support for new command #2202
Conversation
Adds a new command to scala-cli to enable creating projects through giter8
modules/cli/src/main/scala/scala/cli/commands/new/NewOptions.scala
Outdated
Show resolved
Hide resolved
It would also be beneficial to add some integration tests. You can create a new class |
Co-authored-by: Łukasz Wroński <46607934+lwronski@users.noreply.github.com>
Currently trying to add integration tests, but kinda lost in what kind of template to expect. package scala.cli.integration
class NewTests extends ScalaCliSuite {
} The scalafmt integrations seem quite straightforward, but for the giter8 dep I need some "default" scala-cli giter8 template no? And should this live on my github or can we update (for example) this one: https://github.com/VirtuslabRnD/scala-cli.g8 ? |
I think it is the default repository that scala-cli wants to maintain. So let's use them in the integration test. |
No idea why I couldn't find this, thank you! :D |
modules/integration/src/test/scala/scala/cli/integration/NewTests.scala
Outdated
Show resolved
Hide resolved
modules/integration/src/test/scala/scala/cli/integration/NewTests.scala
Outdated
Show resolved
Hide resolved
Co-authored-by: Łukasz Wroński <46607934+lwronski@users.noreply.github.com>
CI is reporting:
I am quite sure I am not touching this part of the code: scala-cli/modules/integration/src/test/scala/scala/cli/integration/PackageTestDefinitions.scala Line 33 in 563fdd5
|
Not really, it throws some timeout. I will re-run CI. |
Ohhh didn't see that 🙈 , thank you :D. |
does this also create the |
Currently the command does not do this. I don't mind adding it!
|
No, it doesn't generate |
Yeah, sounds good to me. |
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.
LGTM @zetashift Thanks for your contribution
To keep track of this idea, I have created an issue for it - #2230 |
Adds a
new
command toscala-cli
to enable creating projects through giter8.Resolves #19
New to the
scala-cli
codebase, so all feedback welcome as I have no real idea if I'm heading in the right direction.I'll add docs when the code is in a better shape!