vertx / io.vertx.core.spi.launcher / DefaultCommand

# DefaultCommand

`abstract class DefaultCommand : Command`

Default implementation of Command using annotation to define itself. It is highly recommended to extend this class when implementing a command. It defines two hidden Options to create system properties (`-Dkey=value`) and a way to configure the current working directory.

### Constructors

<init> | `DefaultCommand()` Default implementation of Command using annotation to define itself. It is highly recommended to extend this class when implementing a command. It defines two hidden Options to create system properties (`-Dkey=value`) and a way to configure the current working directory.

### Functions

getCwd | `open fun getCwd(): File`
out | `open fun out(): PrintStream`
setCwd | `open fun setCwd(cwd: File): Unit` Sets the current working directory. This method is called when the user configure the "cwd" option as follows: `--cwd=the-directory`.
setSystemProps | `open fun setSystemProps(props: MutableList<String>): Unit` Gets system properties passed in the user command line. The user can configure system properties using `-Dkey=value`.
setUp | `open fun setUp(ec: ExecutionContext): Unit`
tearDown | `open fun tearDown(): Unit`