Class EXIT
java.lang.Object
org.jpos.q2.cli.builtin.EXIT
- All Implemented Interfaces:
CLICommand, CLISubSystem
Sub-system command that exits the current CLI sub-system back to the parent shell.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexec(CLIContext cli, String[] strings) Executes the CLI command.String[]getCompletionPrefixes(CLIContext ctx, String[] args) Returns the command prefixes registered by this sub-system.getPrompt(CLIContext ctx, String[] args) Returns the prompt string for this sub-system.
-
Constructor Details
-
EXIT
public EXIT()Default constructor; no instance state to initialise.
-
-
Method Details
-
getPrompt
Description copied from interface:CLISubSystemReturns the prompt string for this sub-system.- Specified by:
getPromptin interfaceCLISubSystem- Parameters:
ctx- the CLI contextargs- current command arguments- Returns:
- the prompt string
-
getCompletionPrefixes
Description copied from interface:CLISubSystemReturns the command prefixes registered by this sub-system.- Specified by:
getCompletionPrefixesin interfaceCLISubSystem- Parameters:
ctx- the CLI contextargs- current command arguments- Returns:
- command prefixes
-
exec
Description copied from interface:CLICommandExecutes the CLI command.- Specified by:
execin interfaceCLICommand- Parameters:
cli- the CLI contextstrings- command arguments- Throws:
Exception- on error
-