public final class SmithyCli
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALLOW_UNKNOWN_TRAITS |
static java.lang.String |
DISCOVER |
static java.lang.String |
DISCOVER_CLASSPATH |
static java.lang.String |
SEVERITY |
Modifier and Type | Method and Description |
---|---|
SmithyCli |
classLoader(java.lang.ClassLoader classLoader)
Sets a custom class loader to use when executing commands.
|
static SmithyCli |
create()
Creates a new instance of the CLI.
|
static void |
main(java.lang.String... args)
Executes the CLI.
|
void |
run(java.util.List<java.lang.String> args)
Runs the CLI using a list of arguments.
|
void |
run(java.lang.String... args)
Runs the CLI.
|
public static final java.lang.String DISCOVER
public static final java.lang.String DISCOVER_CLASSPATH
public static final java.lang.String ALLOW_UNKNOWN_TRAITS
public static final java.lang.String SEVERITY
public static SmithyCli create()
public static void main(java.lang.String... args)
args
- Arguments to parse and execute.public SmithyCli classLoader(java.lang.ClassLoader classLoader)
classLoader
- Class loader used to find models, traits, etc.public void run(java.util.List<java.lang.String> args)
args
- Arguments to parse and execute.public void run(java.lang.String... args)
args
- Arguments to parse and execute.