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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yd-cli
3
- Version: 0.8
3
+ Version: 0.9
4
4
  Summary: CLI tool to synchronize directories using rsync.
5
5
  Author: Christian Heinze
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ requires = [ "uv-build>=0.10,<0.12" ]
4
4
 
5
5
  [project]
6
6
  name = "yd-cli"
7
- version = "0.8"
7
+ version = "0.9"
8
8
  description = "CLI tool to synchronize directories using rsync."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -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 #606060 on #0050aa"
73
+ return "bold black on blue"
74
74
  case yd.types.Action.COPY:
75
- return "bold #606060 on #008020"
75
+ return "bold black on green"
76
76
  case yd.types.Action.DELETE:
77
- return "bold #606060 on #aa0000"
77
+ return "bold black on red"
78
78
  case yd.types.Action.HARDLINK:
79
- return "bold #aaaaaa on #606060"
79
+ return "bold black on bright_black"
80
80
  case yd.types.Action.ATTRUPDATE:
81
- return "bold #606060 on #ffffaa"
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 #ffffaa",
90
- "info": "italic #aaaa00",
91
- "warning": "italic #cc0000",
92
- "error": "bold #ff0000",
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=7),
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