Interface UsageFormatter<S extends Source,C>
- Type Parameters:
S- the source typeC- the component type
public interface UsageFormatter<S extends Source,C>
Interface for formatting command usage paths into displayable help components.
Renamed from UsageDecorator to better reflect its responsibility as a formatter.
-
Method Summary
Modifier and TypeMethodDescription@NotNull HelpComponent<S,C> format(Command<S> lastOwningCommand, CommandUsage<S> pathway, ExecutionContext<S> context, HelpTheme<S, C> theme) Formats a command usage pathway into a help component.
-
Method Details
-
format
@NotNull @NotNull HelpComponent<S,C> format(Command<S> lastOwningCommand, CommandUsage<S> pathway, ExecutionContext<S> context, HelpTheme<S, C> theme) Formats a command usage pathway into a help component.- Parameters:
lastOwningCommand- the command that owns this usagepathway- the usage pathway to formatcontext- the execution contexttheme- the help theme- Returns:
- a formatted help component
-