mdbub 0.3.26__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mdbub
3
- Version: 0.3.26
3
+ Version: 0.4.0
4
4
  Summary: Terminal-first interactive mindmap CLI tool with extended markdown support
5
5
  License: Apache-2.0
6
6
  Keywords: cli,terminal,mindmap,markdown,productivity,tui
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mdbub"
3
- version = "0.3.26"
3
+ version = "0.4.0"
4
4
  description = "Terminal-first interactive mindmap CLI tool with extended markdown support"
5
5
  authors = ["dudash <different.person@example.com>"]
6
6
  license = "Apache-2.0"
@@ -89,6 +89,11 @@ def main(
89
89
  else:
90
90
  deep_link_path = None
91
91
  if file is not None:
92
+ from pathlib import Path
93
+
94
+ path = Path(file)
95
+ if not path.exists():
96
+ path.touch()
92
97
  file_obj = open(file, "r+")
93
98
  else:
94
99
  file_obj = None
@@ -74,7 +74,9 @@ def main() -> None:
74
74
  )
75
75
  console.print("---", style="dim white")
76
76
 
77
- console.print("[bold blue]Version:[/bold blue] 0.3.0", style="dim white")
77
+ from mdbub import get_version
78
+
79
+ console.print(f"[bold blue]Version:[/bold blue] {get_version()}", style="dim white")
78
80
  console.print("[bold blue]Author:[/bold blue] Collabinator Team", style="dim white")
79
81
  console.print("[bold blue]License:[/bold blue] Apache 2.0", style="dim white")
80
82
  console.print(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes