CLI Daily Resource¶
CLIDailyResource(cli)
¶
Bases: BaseCLIResource
CLI resource for daily note operations.
Attributes:
| Name | Type | Description |
|---|---|---|
_cli |
Reference to the parent |
Source code in src/aiobsidian/cli/_base.py
read(*, date=None)
async
¶
Read the content of a daily note.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
date
|
str | None
|
Date in |
None
|
Returns:
| Type | Description |
|---|---|
str
|
Daily note content as a string. |
Source code in src/aiobsidian/cli/daily.py
path()
async
¶
Get the file path of today's daily note.
Returns:
| Type | Description |
|---|---|
str
|
Path to the daily note relative to the vault root. |
create()
async
¶
append(content)
async
¶
Append content to today's daily note.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
content
|
str
|
Content to append. |
required |
prepend(content)
async
¶
Prepend content to today's daily note.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
content
|
str
|
Content to prepend. |
required |