Package io.permazen.cli.app
Class CliMain
java.lang.Object
io.permazen.cli.main.BasicCliMain
io.permazen.cli.app.CliMain
-
Field Summary
Fields inherited from class io.permazen.cli.main.BasicCliMain
showErrorStackTraces
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.permazen.cli.app.CliMain.CliMainConfig
Build aCliConfig
to use.static void
static void
setLogLevel
(String levelName) Methods inherited from class io.permazen.cli.main.BasicCliMain
buildJShellCommand, getErrorPrefix, main, run
-
Field Details
-
DEFAULT_LOG_LEVEL
public static final org.apache.logging.log4j.Level DEFAULT_LOG_LEVEL
-
-
Constructor Details
-
CliMain
public CliMain()
-
-
Method Details
-
buildCliConfig
protected io.permazen.cli.app.CliMain.CliMainConfig buildCliConfig()Description copied from class:BasicCliMain
Build aCliConfig
to use.The implementation in
BasicCliMain
returns a newPermazenCliConfig
. Subclasses can override this method to restrict to lower layers (e.g., Core API), add additional command-line flags, etc.- Overrides:
buildCliConfig
in classBasicCliMain
- Returns:
- CLI configuration
-
main
-
setLogLevel
-