Skip to content

Commit

Permalink
Update TerminalApp doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene Gleyzer committed Nov 19, 2024
1 parent 13721b6 commit 564aa24
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib_cli/src/main/x/cli.x
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
*
* To use the CLI library, the application code needs to do the following:
* - annotate the module as a `TerminalApp`, for example:
*
* @TerminalApp("My commands")
* module MyCommands {...}
* module MyCommands {
* package cli import cli.xtclang.org;
*
* import cli.*;
*
* ...
* }
*
* - annotate any methods to be executed as a command with the `Command` annotation, for example:
*
* @Command("time", "Show current time")
* Time showTime() {
* @Inject Clock clock;
Expand Down

0 comments on commit 564aa24

Please sign in to comment.