ShellSentryCli

class ShellSentryCli : CliktCommand(source)

Executes a command with Bugsnag tracing and retries as needed. This CLI is a shim over ShellSentry.

Example:

$ ./<binary> --bugsnag-key=1234 --verbose --configurationFile config.json ./gradlew build

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
@AutoService(value = [CommandFactory::class])
class Factory : CommandFactory

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val currentContext: Context
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun aliases(): Map<String, List<String>>
Link copied to clipboard
open fun allHelpParams(): List<HelpFormatter.ParameterHelp>
Link copied to clipboard
fun configureContext(block: Context.Builder.() -> Unit)
Link copied to clipboard
fun CliktCommand.dryRunOption(vararg names: String = arrayOf("--dry-run"), help: String = "Runs this as a dry run, no modifications."): OptionWithValues<Boolean, Boolean, Boolean>

A dry run option for clikt commands.

Link copied to clipboard
fun echo()
fun echo(message: Any?, trailingNewline: Boolean, err: Boolean)
Link copied to clipboard
fun echoFormattedHelp(error: CliktError?)
Link copied to clipboard
fun getFormattedHelp(error: CliktError?): String?
Link copied to clipboard
open fun help(context: Context): String
Link copied to clipboard
open fun helpEpilog(context: Context): String
Link copied to clipboard
fun issueMessage(message: String)
Link copied to clipboard
fun CliktCommand.projectDirOption(vararg names: String = arrayOf("--project-dir"), help: String = "The project directory. Defaults to the current working directory."): OptionDelegate<Path>

A project dir option for clikt commands.

Link copied to clipboard
fun registerArgument(argument: Argument)
Link copied to clipboard
fun registeredArguments(): List<Argument>
Link copied to clipboard
fun registeredOptions(): List<Option>
Link copied to clipboard
fun registeredParameterGroups(): List<ParameterGroup>
Link copied to clipboard
fun registeredSubcommands(): List<CoreCliktCommand>
Link copied to clipboard
open override fun registerOption(option: GroupableOption)
fun registerOption(option: Option)
Link copied to clipboard
fun registerOptionGroup(group: ParameterGroup)
Link copied to clipboard
fun resetContext(parent: Context?): Context
Link copied to clipboard
open override fun run()
Link copied to clipboard
open override fun toString(): String