All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.cli.commands.run.SharedRunOptions.scala Maven / Gradle / Ivy

The newest version!
package scala.cli.commands.run

import caseapp.*
import caseapp.core.help.Help

import scala.cli.commands.shared._
import scala.cli.commands.tags

// format: off
final case class SharedRunOptions(
  @Recurse
    sharedJava: SharedJavaOptions = SharedJavaOptions(),
  @Recurse
    watch: SharedWatchOptions = SharedWatchOptions(),
  @Recurse
    compileCross: CrossOptions = CrossOptions(),
  @Recurse
    mainClass: MainClassOptions = MainClassOptions(),
  @Group(HelpGroup.Run.toString)
  @Hidden
  @Tag(tags.experimental)
  @Tag(tags.inShortHelp)
  @HelpMessage("Run as a Spark job, using the spark-submit command")
  @ExtraName("spark")
    sparkSubmit: Option[Boolean] = None,
  @Group(HelpGroup.Run.toString)
  @Hidden
  @Tag(tags.experimental)
  @HelpMessage("Spark-submit arguments")
  @ExtraName("submitArg")
    submitArgument: List[String] = Nil,
  @Group(HelpGroup.Run.toString)
  @Tag(tags.experimental)
  @HelpMessage("Run as a Spark job, using a vanilla Spark distribution downloaded by Scala CLI")
  @ExtraName("sparkStandalone")
    standaloneSpark: Option[Boolean] = None,
  @Group(HelpGroup.Run.toString)
  @Tag(tags.experimental)
  @HelpMessage("Run as a Hadoop job, using the \"hadoop jar\" command")
  @ExtraName("hadoop")
    hadoopJar: Boolean = false,
  @Group(HelpGroup.Run.toString)
  @Tag(tags.should)
  @Tag(tags.inShortHelp)
  @HelpMessage("Print the command that would have been run (one argument per line), rather than running it")
    command: Boolean = false,
  @Group(HelpGroup.Run.toString)
  @HelpMessage("Temporary / working directory where to write generated launchers")
    scratchDir: Option[String] = None,
  @Group(HelpGroup.Run.toString)
  @Hidden
  @Tag(tags.implementation)
  @HelpMessage("Run Java commands using a manifest-based class path (shortens command length)")
    useManifest: Option[Boolean] = None
)
// format: on

object SharedRunOptions {
  implicit lazy val parser: Parser[SharedRunOptions] = Parser.derive
  implicit lazy val help: Help[SharedRunOptions]     = Help.derive
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy