public class CliContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
IServiceProvider |
adminApi() |
org.fusesource.jansi.Ansi |
ansi() |
IServiceProvider |
api(java.lang.String authKey) |
void |
error(java.lang.String msg)
Prints a red message (and avoids sonar error)
|
static CliContext |
get() |
void |
info(java.lang.String msg)
Use this to avoid sonar errors about logger usage
|
void |
info(java.lang.String msg,
java.lang.Object... args) |
void |
progress(int total,
int current) |
java.lang.String |
toStack(java.lang.Exception e)
Create a stacktrace in string format
|
void |
warn(java.lang.String msg)
Prints a yellow message (and avoids sonar error)
|
public org.fusesource.jansi.Ansi ansi()
public static CliContext get()
public IServiceProvider adminApi()
public IServiceProvider api(java.lang.String authKey)
public void error(java.lang.String msg)
msg
- public void warn(java.lang.String msg)
msg
- public void info(java.lang.String msg)
msg
- public void info(java.lang.String msg, java.lang.Object... args)
public void progress(int total, int current)
public java.lang.String toStack(java.lang.Exception e)
e
- Exception
Copyright © 2021. All Rights Reserved.