CLI Properties Resource¶
CLIPropertiesResource(cli)
¶
Bases: BaseCLIResource
CLI resource for note property operations.
Attributes:
| Name | Type | Description |
|---|---|---|
_cli |
Reference to the parent |
Source code in src/aiobsidian/cli/_base.py
list(path)
async
¶
List all properties of a note.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the note relative to the vault root. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Dictionary of property names to their values. |
Source code in src/aiobsidian/cli/properties.py
read(path, property_name)
async
¶
Read a single property from a note.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the note relative to the vault root. |
required |
property_name
|
str
|
Name of the property to read. |
required |
Returns:
| Type | Description |
|---|---|
Any
|
The property value. |
Source code in src/aiobsidian/cli/properties.py
set(path, property_name, value)
async
¶
Set a property on a note.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the note relative to the vault root. |
required |
property_name
|
str
|
Name of the property to set. |
required |
value
|
str
|
Value to set. |
required |
Source code in src/aiobsidian/cli/properties.py
remove(path, property_name)
async
¶
Remove a property from a note.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the note relative to the vault root. |
required |
property_name
|
str
|
Name of the property to remove. |
required |