Spring Shell Sample code
import org.springframework.shell.standard.ShellComponent;
import org.springframework.shell.standard.ShellMethod;
@ShellComponent
public class Commands {
@ShellMethod(value = "Add two numbers", key="sum")
public int add(int a, int b)
{
return a + b;
}
}