File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
cli/src/main/scala/snailgun Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ trait Cli extends SbtModule with NativeImage with SnailgunPublishModule {
4444 def ivyDeps = super .ivyDeps() ++ Seq (
4545 ivy " com.github.alexarchambault::case-app:2.1.0-M14 "
4646 )
47- def mainClass = Some (" snailgun.Cli " )
47+ def mainClass = Some (" snailgun.Snailgun " )
4848
4949 def nativeImageClassPath = runClasspath()
5050 def nativeImageMainClass = mainClass().getOrElse {
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ import java.io.{InputStream, PrintStream}
99import java .net .ConnectException
1010import java .util .concurrent .atomic .AtomicBoolean
1111
12- object Cli extends CaseApp [CliOptions ] {
12+ object Snailgun extends CaseApp [SnailgunOptions ] {
1313 override def stopAtFirstUnrecognized = true
14- def run (options : CliOptions , args : RemainingArgs ): Unit = {
14+ def run (options : SnailgunOptions , args : RemainingArgs ): Unit = {
1515 val inOpt = if (options.hasInput) Some (System .in) else None
1616 val out = System .out
1717 val err = System .err
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import caseapp._
44
55// format: off
66@ ArgsName (" The command and arguments for the Nailgun server" )
7- final case class CliOptions (
7+ final case class SnailgunOptions (
88 @ HelpMessage (" Specify the host name of the target Nailgun server" )
99 nailgunServer : Option [String ] = None ,
1010 @ HelpMessage (" Specify the port of the target Nailgun server" )
@@ -18,7 +18,7 @@ final case class CliOptions(
1818)
1919// format: on
2020
21- object CliOptions {
22- implicit lazy val parser : Parser [CliOptions ] = Parser .derive
23- implicit lazy val help : Help [CliOptions ] = Help .derive
21+ object SnailgunOptions {
22+ implicit lazy val parser : Parser [SnailgunOptions ] = Parser .derive
23+ implicit lazy val help : Help [SnailgunOptions ] = Help .derive
2424}
You can’t perform that action at this time.
0 commit comments