Class Upgrade1to2Command
java.lang.Object
software.amazon.smithy.cli.commands.Upgrade1to2Command
- All Implemented Interfaces:
Command
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.smithy.cli.Command
Command.Env -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ArgumentReceiver>Creates argument receivers for the command.final intexecute(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.voidprintHelp(Arguments arguments, CliPrinter printer) Prints help output.protected intrun(Arguments arguments, Command.Env env, List<String> models) Run the non-help command after all arguments have been parsed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.smithy.cli.Command
getDocumentation
-
Constructor Details
-
Upgrade1to2Command
-
-
Method Details
-
createArgumentReceivers
Creates argument receivers for the command.- Returns:
- Returns the parsed positional arguments.
-
getName
Description copied from interface:CommandGets the name of the command.The returned name should contain no spaces or special characters.
- Returns:
- Returns the command name.
-
getSummary
Description copied from interface:CommandGets a short summary of the command that's shown in the main help.- Returns:
- Returns the short help description.
-
run
Run the non-help command after all arguments have been parsed.- Parameters:
arguments- Arguments to evaluate.env- CLI environment settings.models- Parsed positional arguments.- Returns:
- Returns the exit code.
-
execute
Description copied from interface:CommandExecutes the command using the provided arguments. -
printHelp
Description copied from interface:CommandPrints help output.
-