ScalaCommand
Attributes
- Graph
-
- Supertypes
-
trait RestrictableCommand[T]trait CommandHelperstrait NeedsArgvCommandclass Command[T]class CaseApp[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object AddPath.typeobject Bloop.typeobject BloopExit.typeobject BloopOutput.typeobject BloopStart.typeobject Bsp.typeobject Clean.typeobject Compile.typeobject Config.typeobject DefaultFile.typeobject DependencyUpdate.typeobject Directories.typeobject Doc.typeobject Export.typeobject Fix.typeobject Fmt.typeobject SecretCreate.typeobject SecretList.typeobject InstallCompletions.typeobject InstallHome.typeobject New.typeobject Package.typeobject PgpPull.typeobject PgpPush.typeobject Publish.typeobject PublishLocal.typeobject PublishSetup.typeobject Repl.typeobject Run.typeobject SetupIde.typeobject Shebang.typeobject Test.typeobject Uninstall.typeobject UninstallCompletions.typeobject Update.typeobject Version.typeclass ScalaCommandWithCustomHelp[T]class Defaultclass HelpCmdShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- CommandHelpers
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Abstract methods
This should be overridden instead of run when extending ScalaCommand.
This should be overridden instead of run when extending ScalaCommand.
Value parameters
- options
-
the command's specific set of options
- remainingArgs
-
arguments remaining after parsing options
Attributes
Concrete methods
Attributes
- Returns
-
the actual Scala CLI base runner name, for SIP it is scala otherwise scala-cli
Value parameters
- options
-
command-specific T options
Attributes
- Returns
-
Tries to create BuildOptions based on sharedOptions and exits on error. Override to change this behaviour.
Attributes
- Definition Classes
-
CaseApp
Attributes
- Definition Classes
-
CaseApp
Attributes
- Returns
-
the actual Scala CLI runner name which was run
Attributes
- Definition Classes
-
CaseApp
Attributes
- Definition Classes
-
CaseApp
Attributes
- Definition Classes
-
Command
Attributes
- Definition Classes
Attributes
- Definition Classes
-
CaseApp
Print scalac
output if passed options imply no inputs are necessary and raw scalac
output is required instead. (i.e. --scalac-option -help
)
Print scalac
output if passed options imply no inputs are necessary and raw scalac
output is required instead. (i.e. --scalac-option -help
)
Value parameters
- options
-
command options
Attributes
Attributes
- Returns
-
the actual Scala CLI program name which was run
This implementation is final. Override runCommand instead. This logic is invoked at the start of running every ScalaCommand.
This implementation is final. Override runCommand instead. This logic is invoked at the start of running every ScalaCommand.
Attributes
- Definition Classes
-
CaseApp
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- RestrictableCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Arguments are expanded then parsed. By default, argument expansion is the identity function. Overriding this method allows plugging in an arbitrary argument expansion logic.
Arguments are expanded then parsed. By default, argument expansion is the identity function. Overriding this method allows plugging in an arbitrary argument expansion logic.
One such expansion logic involves replacing each argument of the form '@
Attributes
- Example
-
import caseapp.core.parser.PlatformArgsExpander override def expandArgs(args: List[String]): List[String] = PlatformArgsExpander.expand(args)
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- Command
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Whether to ignore unrecognized arguments.
Whether to ignore unrecognized arguments.
That is, if there are unrecognized arguments, the parsing still succeeds. The unparsed arguments are put in the args
argument of run
.
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- RestrictableCommand
Attributes
- Inherited from:
- RestrictableCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- Command
Attributes
- Inherited from:
- Command
Attributes
- Definition Classes
- Inherited from:
- RestrictableCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Is that command a MUST / SHOULD / NICE TO have for the Scala runner specification?
Is that command a MUST / SHOULD / NICE TO have for the Scala runner specification?
Attributes
- Inherited from:
- RestrictableCommand
Whether to stop parsing at the first unrecognized argument.
Whether to stop parsing at the first unrecognized argument.
That is, stop parsing at the first non option (not starting with "-"), or the first unrecognized option. The unparsed arguments are put in the args
argument of run
.
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Concrete fields
Inherited fields
Attributes
- Inherited from:
- CaseApp
Givens
Givens
Implicits
Inherited implicits
Attributes
- Inherited from:
- CommandHelpers
Attributes
- Inherited from:
- CaseApp