Package software.amazon.smithy.cli
Class SmithyCli
java.lang.Object
software.amazon.smithy.cli.SmithyCli
Entry point of the Smithy CLI.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclassLoader(ClassLoader classLoader) Sets a custom class loader to use when executing commands.static SmithyClicreate()Creates a new instance of the CLI.static voidExecutes the CLI.voidRuns the CLI.voidRuns the CLI using a list of arguments.
-
Field Details
-
DISCOVER
- See Also:
-
DISCOVER_CLASSPATH
- See Also:
-
ALLOW_UNKNOWN_TRAITS
- See Also:
-
SEVERITY
- See Also:
-
-
Method Details
-
create
Creates a new instance of the CLI.- Returns:
- Returns the CLI instance.
-
main
Executes the CLI.- Parameters:
args- Arguments to parse and execute.
-
classLoader
Sets a custom class loader to use when executing commands.- Parameters:
classLoader- Class loader used to find models, traits, etc.- Returns:
- Returns the CLI.
-
run
Runs the CLI using a list of arguments.- Parameters:
args- Arguments to parse and execute.
-
run
Runs the CLI.- Parameters:
args- Arguments to parse and execute.
-