CLI Commands Resource¶
CLICommandsResource(cli)
¶
Bases: BaseCLIResource
CLI resource for Obsidian command operations.
Attributes:
| Name | Type | Description |
|---|---|---|
_cli |
Reference to the parent |
Source code in src/aiobsidian/cli/_base.py
execute(command_id)
async
¶
Execute an Obsidian command by its ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
command_id
|
str
|
Obsidian command identifier
(e.g. |
required |
Source code in src/aiobsidian/cli/commands.py
list(*, filter=None)
async
¶
List available Obsidian commands.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filter
|
str | None
|
Filter commands by ID prefix. |
None
|
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of command objects. |