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

scala.cli.commands.pgp.ExternalCommand.scala Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package scala.cli.commands.pgp

import caseapp.*

import scala.cli.commands.util.CommandHelpers

abstract class ExternalCommand extends Command[DummyOptions] with CommandHelpers {
  override def hasHelp                 = false
  override def stopAtFirstUnrecognized = true

  def actualHelp: Help[_]

  def run(options: DummyOptions, args: RemainingArgs): Unit = {
    val unparsedPart =
      if (args.unparsed.isEmpty) Nil
      else Seq("--") ++ args.unparsed
    val allArgs = args.remaining ++ unparsedPart
    run(allArgs)
  }

  def run(args: Seq[String]): Unit
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy