SHL-23 - Create docbook based reference guide
This commit is contained in:
@@ -20,6 +20,14 @@ import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
*
|
||||
* Annotates a method that provides a command to the shell.
|
||||
*
|
||||
* @author Ben Alex
|
||||
* @since 1.0
|
||||
*
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface CliCommand {
|
||||
|
||||
@@ -22,7 +22,13 @@ import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.shell.core.Converter;
|
||||
|
||||
|
||||
/**
|
||||
* Annotates the arguments of a command methods, allowing it to declare the argument value as mandatory or optional with a default value.
|
||||
*
|
||||
* @author Ben Alex
|
||||
* @since 1.0
|
||||
*
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.PARAMETER)
|
||||
public @interface CliOption {
|
||||
|
||||
Reference in New Issue
Block a user