Package liquibase.command
Class CommandBuilder
java.lang.Object
liquibase.command.CommandBuilder
Builder for configuring
CommandStep
settings, such as CommandArgumentDefinition
s and CommandResultDefinition
s-
Constructor Summary
ConstructorDescriptionCommandBuilder
(String[]... commandNames) Creates a builder for the given command name -
Method Summary
Modifier and TypeMethodDescription<DataType> CommandArgumentDefinition.Building<DataType>
addArgument
(CommandArgumentDefinition<DataType> example) Uses an existingCommandArgumentDefinition
as template<DataType> CommandArgumentDefinition.Building<DataType>
Starts the building of a newCommandArgumentDefinition
.<DataType> CommandArgumentDefinition.Building<DataType>
argument
(CommonArgumentNames argument, Class<DataType> type) Starts the building of a newCommandArgumentDefinition
.<DataType> CommandResultDefinition.Building<DataType>
Starts the building of a newCommandResultDefinition
.
-
Constructor Details
-
CommandBuilder
Creates a builder for the given command name
-
-
Method Details
-
argument
public <DataType> CommandArgumentDefinition.Building<DataType> argument(String name, Class<DataType> type) Starts the building of a newCommandArgumentDefinition
. -
argument
public <DataType> CommandArgumentDefinition.Building<DataType> argument(CommonArgumentNames argument, Class<DataType> type) Starts the building of a newCommandArgumentDefinition
. -
addArgument
public <DataType> CommandArgumentDefinition.Building<DataType> addArgument(CommandArgumentDefinition<DataType> example) Uses an existingCommandArgumentDefinition
as template -
result
public <DataType> CommandResultDefinition.Building<DataType> result(String name, Class<DataType> type) Starts the building of a newCommandResultDefinition
.
-