scala.cli.commands.uninstallcompletions.UninstallCompletionsOptions.scala Maven / Gradle / Ivy
The newest version!
package scala.cli.commands.uninstallcompletions
import caseapp.*
import scala.cli.ScalaCli.fullRunnerName
import scala.cli.commands.shared.{GlobalOptions, HasGlobalOptions, HelpMessages}
import scala.cli.commands.uninstallcompletions.SharedUninstallCompletionsOptions
// format: off
@HelpMessage(UninstallCompletionsOptions.helpMessage, "", UninstallCompletionsOptions.detailedHelpMessage)
final case class UninstallCompletionsOptions(
@Recurse
shared: SharedUninstallCompletionsOptions = SharedUninstallCompletionsOptions(),
@Recurse
global: GlobalOptions = GlobalOptions(),
) extends HasGlobalOptions
// format: on
object UninstallCompletionsOptions {
implicit lazy val parser: Parser[UninstallCompletionsOptions] = Parser.derive
implicit lazy val help: Help[UninstallCompletionsOptions] = Help.derive
private val helpHeader = s"Uninstalls $fullRunnerName completions from your shell."
val helpMessage: String =
s"""$helpHeader
|
|${HelpMessages.commandFullHelpReference("uninstall completions")}
|${HelpMessages.commandDocWebsiteReference("completions")}""".stripMargin
val detailedHelpMessage: String =
s"""$helpHeader
|
|${HelpMessages.commandDocWebsiteReference("completions")}""".stripMargin
}