public interface Command
Launcherclass. Each command instance is created by a
Commandimplementation can retrieve argument and option using the
Optionannotations. Documentation / help is provided using the
Summary(single sentence) and
Commands follow a strict lifecycle. The
setUp(ExecutionContext) method is called with an
execution context. It lets you validate the inputs and prepare the environment is needed. The
run() method is called immediately after
setUp(ExecutionContext), and executes the
command. Finally, once the command has completed, the
tearDown() method is called. In this method
you have the opportunity to cleanup.
void setUp(ExecutionContext context) throws CLIException
context- the context
CLIException- if the validation failed
void run() throws CLIException
CLIException- If anything went wrong.
Copyright © 2022 Eclipse. All rights reserved.