We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 63267a3 + 6d14289 commit 2dee252Copy full SHA for 2dee252
pyproject.toml
@@ -34,6 +34,7 @@ classifiers = [
34
]
35
dependencies = [
36
"typer >= 0.12.3",
37
+ "rich-toolkit >= 0.6.3",
38
39
40
[project.optional-dependencies]
src/fastapi_cli/utils/__init__.py
src/fastapi_cli/utils/cli.py
@@ -0,0 +1,20 @@
1
+from rich_toolkit import RichToolkit, RichToolkitTheme
2
+from rich_toolkit.styles import TaggedStyle
3
+
4
5
+def get_rich_toolkit() -> RichToolkit:
6
+ theme = RichToolkitTheme(
7
+ style=TaggedStyle(tag_width=11),
8
+ theme={
9
+ "tag.title": "black on #A7E3A2",
10
+ "tag": "white on #009485",
11
+ "placeholder": "grey85",
12
+ "text": "white",
13
+ "selected": "green",
14
+ "result": "grey85",
15
+ "progress": "on #009485",
16
+ "error": "red",
17
+ },
18
+ )
19
20
+ return RichToolkit(theme=theme)
0 commit comments