【文件属性】:
文件名称:commander-shell:使用已经过验证且无错误的 jcommander 和 jline 的 Shell 框架
文件大小:56KB
文件格式:ZIP
更新时间:2021-06-17 15:33:32
Java
指挥官壳
一个 Shell 框架,它使用已经过验证且无错误的和 。 以下是编写新命令并在自定义 shell 中使用它的方法
@Parameters ( commandDescription = " My new command " , commandNames = " mycommand " )
class MyCommand implements ShellCommand {
@Parameter ( description = " argument " , names = " -a " )
private String argument;
@Override
public void run () {
System . out . println(argument);