Skip to content

Commit 2181666

Browse files
authored
fix: typer versioning breaking change (#16)
1 parent 31c7fb5 commit 2181666

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

appwrite_lab/cli/list_menu.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
from appwrite_lab._orchestrator import get_template_versions
44
import typer
55

6-
list_menu = typer.Typer(name="list", rich_markup_mode=typer.rich_utils.MARKUP_MODE_RICH)
6+
try:
7+
from typer.rich_utils import MARKUP_MODE_RICH
8+
9+
RICH_MODE = MARKUP_MODE_RICH
10+
except Exception:
11+
RICH_MODE = "rich"
12+
13+
list_menu = typer.Typer(name="list", rich_markup_mode=RICH_MODE)
714

815
labs = get_global_labs()
916

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "appwrite-lab"
7-
version = "0.1.4"
7+
version = "0.1.5"
88
description = "Zero-click Appwrite test environments."
99
readme = "README.md"
1010
requires-python = ">=3.11"

0 commit comments

Comments
 (0)