Top Fields Constructors Methods
examples.cli

public Class MyCommand

extends DefaultCommand
Class Inheritance
Annotations
@Name:my-command
@Summary:A simple hello command.
Imports
io.vertx.core.cli.CLIException, io.vertx.core.cli.annotations.Name, .Option, .Summary, io.vertx.core.spi.launcher.DefaultCommand

Field Summary

Modifier and TypeField and Description
private String
Inherited from io.vertx.core.spi.launcher.DefaultCommand:
executionContextoutsystemProperties

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements io.vertx.core.spi.launcher.Command.run.

Executes the command.

public void
Inherited from io.vertx.core.spi.launcher.DefaultCommand:
applySystemPropertiesgetCwdoutsetCwdsetSystemPropssetUptearDown

Field Detail

nameback to summary
private String name

Constructor Detail

MyCommandback to summary
public MyCommand()

Method Detail

runback to summary
public void run() throws CLIException

Implements io.vertx.core.spi.launcher.Command.run.

Doc from io.vertx.core.spi.launcher.Command.run.

Executes the command.

Annotations
@Override
Exceptions
CLIException:
If anything went wrong.
setNameback to summary
public void setName(String n)
Annotations
@Option
longName:name
required:true