Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 463 Bytes

appendices-technical-intro-commandcontext.adoc

File metadata and controls

20 lines (17 loc) · 463 Bytes

Command Context

The CommandContext interface gives access to a currently running context. You can use it to get access to options:

link:{snippets}/CommandContextSnippets.java[role=include]

If you need to print something into a shell, you can get a Terminal and use its writer to print something:

link:{snippets}/CommandContextSnippets.java[role=include]