Class SmithyCommand
java.lang.Object
software.amazon.smithy.cli.commands.SmithyCommand
- All Implemented Interfaces:
Command
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.smithy.cli.Command
Command.Env
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
execute
(Arguments arguments, Command.Env env) Executes the command using the provided arguments.getName()
Gets the name of the command.Gets a short summary of the command that's shown in the main help.void
printHelp
(Arguments arguments, ColorFormatter colors, CliPrinter printer) Prints help output.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.smithy.cli.Command
getDocumentation, isHidden
-
Constructor Details
-
SmithyCommand
-
-
Method Details
-
getName
Description copied from interface:Command
Gets the name of the command.The returned name should contain no spaces or special characters.
-
getSummary
Description copied from interface:Command
Gets a short summary of the command that's shown in the main help.- Specified by:
getSummary
in interfaceCommand
- Returns:
- Returns the short help description.
-
printHelp
Description copied from interface:Command
Prints help output. -
execute
Description copied from interface:Command
Executes the command using the provided arguments.
-