-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include test scope in the REPL when the
--test
flag is passed
- Loading branch information
Showing
14 changed files
with
259 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
modules/cli/src/main/scala/scala/cli/commands/shared/ScopeOptions.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package scala.cli.commands.shared | ||
|
||
import caseapp.* | ||
|
||
import scala.cli.commands.tags | ||
|
||
case class ScopeOptions( | ||
@Group(HelpGroup.Compilation.toString) | ||
@HelpMessage("Include test scope") | ||
@Tag(tags.should) | ||
@Tag(tags.inShortHelp) | ||
@Name("testScope") | ||
@Name("withTestScope") | ||
@Name("withTest") | ||
test: Boolean = false | ||
) | ||
object ScopeOptions { | ||
implicit lazy val parser: Parser[ScopeOptions] = Parser.derive | ||
implicit lazy val help: Help[ScopeOptions] = Help.derive | ||
} |
Oops, something went wrong.