trading_agent.terminal.page_commands
¶
The pages and the terminal's actions in Textual's command palette (Ctrl+P).
Typical usage example:
class TerminalApplication(App): COMMANDS = App.COMMANDS | {PageCommands}
PageCommands
¶
Bases: Provider
Offers every page, and switching desk, model and theme, in the command palette.
search
async
¶
Finds the pages and actions that match the typed text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
What was typed into the palette. |
required |
Yields:
| Type | Description |
|---|---|
Hit
|
One hit per matching page or action. |
Source code in src/trading_agent/terminal/page_commands.py
discover
async
¶
Lists every page and action before anything is typed.
Yields:
| Type | Description |
|---|---|
DiscoveryHit
|
One hit per page or action. |