feat: Implement the Onyx Obsidian CLI tool, including its source, tests, and executable build artifacts.

This commit is contained in:
olivier committed 2025-11-20 20:44:19 -05:00
1 parent af43694c98
commit 21837be512
16 files changed
+217 -146

No files matched your search

+2 -2
View File
@@ -150,8 +150,8 @@ class OnyxCLI:
overwrite: bool = False, append: bool = False, open_after: bool = False):
vault_name, vault_path = self._get_vault_and_path(vault)
note_path = vault_path / note_name
if not note_path.suffix:
note_path = note_path.with_suffix('.md')
if not str(note_path).endswith('.md'):
note_path = Path(str(note_path) + '.md')
note_path.parent.mkdir(parents=True, exist_ok=True)