Skip to content

Help command #193

Open
Open
@pith

Description

@pith

The CommandLinePlugin give all the CommandLineHandler to HelpService which extracts CommandLineDescription.
Then the HelpCommandLineHandler inject all the CommandLineDescription and print a well-formated description of all commands or a specific command.

// Internally used by the CommandLinePlugin
class HelpService {
    Map<String, CommandLineDescription> extractDescription(List<Class<CommandLineHandler>> classes);
}
class CommandLineDescription {
    ...
}
class HelpCommandLineHandler {

    @Inject
    private Map<String, CommandLineDescription> descriptionByCommand;

    int call() {
        ...
    }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions