Package picocli.shell.jline3
Class PicocliCommands.ClearScreen
java.lang.Object
picocli.shell.jline3.PicocliCommands.ClearScreen
- Enclosing class:
PicocliCommands
Command that clears the screen.
WARNING: This subcommand needs a JLine Terminal
to clear the screen.
To accomplish this, construct the CommandLine
with a PicocliCommandsFactory
,
and set the Terminal
on that factory. For example:
@Command(subcommands = PicocliCommands.ClearScreen.class) class MyApp //... PicocliCommandsFactory factory = new PicocliCommandsFactory(); CommandLine cmd = new CommandLine(new MyApp(), factory); // create terminal factory.setTerminal(terminal);
- Since:
- 4.6
-
Method Summary
-
Method Details
-
call
- Specified by:
call
in interfaceCallable<Void>
- Throws:
IOException
-