CLI Publish Resource¶
CLIPublishResource(cli)
¶
Bases: BaseCLIResource
CLI resource for Obsidian Publish operations.
Attributes:
| Name | Type | Description |
|---|---|---|
_cli |
Reference to the parent |
Source code in src/aiobsidian/cli/_base.py
open(path=None)
async
¶
Open a file on the published site.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | None
|
Path to the file to open. If |
None
|
Source code in src/aiobsidian/cli/publish.py
site()
async
¶
Get Publish site information.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Site configuration details. |
status(path=None)
async
¶
Get publication status.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | None
|
Optional file path to check status for. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Publication status details. |
Source code in src/aiobsidian/cli/publish.py
add(path=None)
async
¶
Publish a file or all changed files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | None
|
Path to the file to publish. If |
None
|
Source code in src/aiobsidian/cli/publish.py
remove(path)
async
¶
Unpublish a file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the file to unpublish. |
required |