Package org.ehrbase.cli.cmd
Class CliCommand
java.lang.Object
org.ehrbase.cli.cmd.CliCommand
- Direct Known Subclasses:
CliDataBaseCommand,CliHelpCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a command CliArgumentstatic interfaceRepresents the Result of aCliCommand.CliArgumentexecution -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconsumeArgs(Iterable<String> args, ExceptionFriendlyFunction<CliCommand.CliArgument, CliCommand.Result> consumer) voidgetName()protected voidprotected voidprotected abstract voidabstract void
-
Field Details
-
name
-
-
Constructor Details
-
CliCommand
-
-
Method Details
-
getName
-
run
- Throws:
Throwable
-
println
-
printStep
-
exitFail
-
printUsage
protected abstract void printUsage() -
consumeArgs
protected void consumeArgs(Iterable<String> args, ExceptionFriendlyFunction<CliCommand.CliArgument, CliCommand.Result> consumer) throws Exception- Throws:
Exception
-