yd-cli 0.8__tar.gz → 0.9__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.
- {yd_cli-0.8 → yd_cli-0.9}/PKG-INFO +1 -1
- {yd_cli-0.8 → yd_cli-0.9}/pyproject.toml +1 -1
- {yd_cli-0.8 → yd_cli-0.9}/src/yd/cli.py +10 -10
- {yd_cli-0.8 → yd_cli-0.9}/LICENSES/MIT.txt +0 -0
- {yd_cli-0.8 → yd_cli-0.9}/README.md +0 -0
- {yd_cli-0.8 → yd_cli-0.9}/src/yd/__init__.py +0 -0
- {yd_cli-0.8 → yd_cli-0.9}/src/yd/__main__.py +0 -0
- {yd_cli-0.8 → yd_cli-0.9}/src/yd/commands.py +0 -0
- {yd_cli-0.8 → yd_cli-0.9}/src/yd/echo.py +0 -0
- {yd_cli-0.8 → yd_cli-0.9}/src/yd/execution.py +0 -0
- {yd_cli-0.8 → yd_cli-0.9}/src/yd/io.py +0 -0
- {yd_cli-0.8 → yd_cli-0.9}/src/yd/py.typed +0 -0
- {yd_cli-0.8 → yd_cli-0.9}/src/yd/types.py +0 -0
|
@@ -70,15 +70,15 @@ def _action_name(action: yd.types.Action) -> str:
|
|
|
70
70
|
def _action_styler(action: yd.types.Action) -> str:
|
|
71
71
|
match action:
|
|
72
72
|
case yd.types.Action.CREATE:
|
|
73
|
-
return "bold
|
|
73
|
+
return "bold black on blue"
|
|
74
74
|
case yd.types.Action.COPY:
|
|
75
|
-
return "bold
|
|
75
|
+
return "bold black on green"
|
|
76
76
|
case yd.types.Action.DELETE:
|
|
77
|
-
return "bold
|
|
77
|
+
return "bold black on red"
|
|
78
78
|
case yd.types.Action.HARDLINK:
|
|
79
|
-
return "bold
|
|
79
|
+
return "bold black on bright_black"
|
|
80
80
|
case yd.types.Action.ATTRUPDATE:
|
|
81
|
-
return "bold
|
|
81
|
+
return "bold black on yellow"
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
def _setup_rich_devices() -> tuple[rich.console.Console, StrEnumHighlighter]:
|
|
@@ -86,10 +86,10 @@ def _setup_rich_devices() -> tuple[rich.console.Console, StrEnumHighlighter]:
|
|
|
86
86
|
theme = rich.theme.Theme(
|
|
87
87
|
highlighter.create_theme_addon(styler=_action_styler)
|
|
88
88
|
| {
|
|
89
|
-
"progress.elapsed": "italic
|
|
90
|
-
"info": "italic
|
|
91
|
-
"warning": "italic
|
|
92
|
-
"error": "bold
|
|
89
|
+
"progress.elapsed": "italic yellow",
|
|
90
|
+
"info": "italic yellow",
|
|
91
|
+
"warning": "italic red",
|
|
92
|
+
"error": "bold bright_red",
|
|
93
93
|
}
|
|
94
94
|
)
|
|
95
95
|
console = rich.console.Console(highlighter=highlighter, theme=theme)
|
|
@@ -325,7 +325,7 @@ def run(
|
|
|
325
325
|
rich.progress.TextColumn(
|
|
326
326
|
f"{{task.fields[{action_name}]}}",
|
|
327
327
|
justify="right",
|
|
328
|
-
table_column=rich.table.Column(min_width=
|
|
328
|
+
table_column=rich.table.Column(min_width=5),
|
|
329
329
|
),
|
|
330
330
|
)
|
|
331
331
|
for action_name in {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|