Class LIST
java.lang.Object
org.jpos.q2.cli.deploy.LIST
- All Implemented Interfaces:
CLICommand
CLI implementation - Deploy subsystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexec(CLIContext ctx, String[] args) Executes the CLI command.static StringprintDirectoryTree(File folder) Renders the contents offolderas a tree-formatted string.
-
Constructor Details
-
LIST
public LIST()Default constructor; no instance state to initialise.
-
-
Method Details
-
exec
Description copied from interface:CLICommandExecutes the CLI command.- Specified by:
execin interfaceCLICommand- Parameters:
ctx- the CLI contextargs- command arguments- Throws:
Exception- on error
-
printDirectoryTree
Renders the contents offolderas a tree-formatted string.- Parameters:
folder- root directory to render- Returns:
- the tree rendering
- Throws:
IllegalArgumentException- iffolderis not a directory
-