Mercurial > cgi-bin > hgweb.cgi > PassMan
view src/main/kotlin/name/blackcap/passman/Subcommand.kt @ 28:287eadf5ab30 default tip
Check for timeouts inside subcommands while in interactive mode as well.
author | David Barts <n5jrn@me.com> |
---|---|
date | Wed, 31 Jul 2024 11:21:18 -0700 |
parents | ea65ab890f66 |
children |
line wrap: on
line source
package name.blackcap.passman abstract class Subcommand() { abstract fun run(args: Array<String>): Unit } // Replaces fatal errors that used to exit the process. class SubcommandException(message: String? = null, cause: Throwable? = null, status: Int = 1) : Exception(message, cause) { private val _status = status val status: Int get() = _status }