Class CommandDescription

java.lang.Object
org.jline.shell.CommandDescription

public class CommandDescription extends Object
Describes a command for help display and widget integration.

Uses a builder pattern and record-style accessors. Instances are immutable once built.

Example:

 CommandDescription desc = CommandDescription.builder()
     .mainDescription(List.of(new AttributedString("list files")))
     .argument(new ArgumentDescription("path"))
     .option("-l --long", List.of(new AttributedString("long format")))
     .build();
 
Since:
4.0
See Also: