CLI Links Resource¶
CLILinksResource(cli)
¶
Bases: BaseCLIResource
CLI resource for link and backlink operations.
Attributes:
| Name | Type | Description |
|---|---|---|
_cli |
Reference to the parent |
Source code in src/aiobsidian/cli/_base.py
outgoing(path)
async
¶
Get outgoing links from a note.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path or name of the note. |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of outgoing link objects. |
Source code in src/aiobsidian/cli/links.py
incoming(path, *, counts=False)
async
¶
Get backlinks (incoming links) to a note.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path or name of the note. |
required |
counts
|
bool
|
If |
False
|
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of backlink objects. |
Source code in src/aiobsidian/cli/links.py
unresolved()
async
¶
Get all unresolved (broken) links in the vault.
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of unresolved link objects. |
Source code in src/aiobsidian/cli/links.py
orphans()
async
¶
Get orphan notes (notes with no incoming or outgoing links).
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of orphan note objects. |
Source code in src/aiobsidian/cli/links.py
deadends()
async
¶
Get notes with no outgoing links (dead ends).
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of dead-end note objects. |