zrb 1.0.0a15__py3-none-any.whl → 1.0.0a16__py3-none-any.whl

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.
zrb/builtin/git.py CHANGED
@@ -3,7 +3,7 @@ from zrb.context.any_context import AnyContext
3
3
  from zrb.input.bool_input import BoolInput
4
4
  from zrb.input.str_input import StrInput
5
5
  from zrb.task.make_task import make_task
6
- from zrb.util.cli.style import stylize_green, stylize_red, stylize_yellow
6
+ from zrb.util.cli.style import stylize_faint, stylize_green, stylize_red, stylize_yellow
7
7
  from zrb.util.git import (
8
8
  add,
9
9
  commit,
@@ -92,7 +92,7 @@ async def prune_local_branches(ctx: AnyContext):
92
92
  for branch in branches:
93
93
  if branch == current_branch or branch == "main" or branch == "master":
94
94
  continue
95
- ctx.print(stylize_yellow(f"Removing local branch: {branch}"))
95
+ ctx.print(stylize_faint(f"Removing local branch: {branch}"))
96
96
  try:
97
97
  await delete_branch(repo_dir, branch, log_method=ctx.print)
98
98
  except Exception as e:
@@ -113,9 +113,9 @@ async def prune_local_branches(ctx: AnyContext):
113
113
  )
114
114
  async def git_commit(ctx: AnyContext):
115
115
  repo_dir = await get_repo_dir(log_method=ctx.print)
116
- ctx.print("Add changes to staging")
116
+ ctx.print(stylize_faint("Add changes to staging"))
117
117
  await add(repo_dir, log_method=ctx.print)
118
- ctx.print("Commit changes")
118
+ ctx.print(stylize_faint("Commit changes"))
119
119
  await commit(repo_dir, ctx.input.message, log_method=ctx.print)
120
120
 
121
121
 
@@ -136,7 +136,7 @@ async def git_pull(ctx: AnyContext):
136
136
  repo_dir = await get_repo_dir(log_method=ctx.print)
137
137
  remote = ctx.input.remote
138
138
  current_branch = await get_current_branch(repo_dir, log_method=ctx.print)
139
- ctx.print(f"Pulling from {remote}/{current_branch}")
139
+ ctx.print(stylize_faint(f"Pulling from {remote}/{current_branch}"))
140
140
  await pull(repo_dir, remote, current_branch, log_method=ctx.print)
141
141
 
142
142
 
@@ -157,5 +157,5 @@ async def git_push(ctx: AnyContext):
157
157
  repo_dir = await get_repo_dir(log_method=ctx.print)
158
158
  remote = ctx.input.remote
159
159
  current_branch = await get_current_branch(repo_dir, log_method=ctx.print)
160
- ctx.print(f"Pushing to {remote}/{current_branch}")
160
+ ctx.print(stylize_faint(f"Pushing to {remote}/{current_branch}"))
161
161
  await push(repo_dir, remote, current_branch, log_method=ctx.print)
@@ -3,6 +3,7 @@ from zrb.builtin.group import git_subtree_group
3
3
  from zrb.context.any_context import AnyContext
4
4
  from zrb.input.str_input import StrInput
5
5
  from zrb.task.make_task import make_task
6
+ from zrb.util.cli.style import stylize_faint
6
7
  from zrb.util.git import get_repo_dir
7
8
  from zrb.util.git_subtree import add_subtree, load_config, pull_subtree, push_subtree
8
9
 
@@ -59,7 +60,7 @@ async def git_pull_subtree(ctx: AnyContext):
59
60
  first_err: Exception | None = None
60
61
  for name, detail in config.data.items():
61
62
  try:
62
- ctx.print(f"Pull from subtree {name}")
63
+ ctx.print(stylize_faint(f"Pull from subtree {name}"))
63
64
  await pull_subtree(
64
65
  repo_dir=repo_dir,
65
66
  prefix=detail.prefix,
@@ -90,7 +91,7 @@ async def git_push_subtree(ctx: AnyContext):
90
91
  first_err: Exception | None = None
91
92
  for name, detail in config.data.items():
92
93
  try:
93
- ctx.print(f"Push to subtree {name}")
94
+ ctx.print(stylize_faint(f"Push to subtree {name}"))
94
95
  await push_subtree(
95
96
  repo_dir=repo_dir,
96
97
  prefix=detail.prefix,
zrb/builtin/todo.py CHANGED
@@ -193,10 +193,9 @@ def archive_todo(ctx: AnyContext):
193
193
  input=[
194
194
  StrInput(name="keyword", prompt="Task keyword", description="Task Keyword"),
195
195
  StrInput(
196
- name="start",
197
- prompt="Working start time (%Y-%m-%d %H:%M:%S)",
198
- description="Working start time",
199
- default_str=lambda _: _get_default_start(),
196
+ name="log",
197
+ prompt="Working log",
198
+ description="Working log",
200
199
  ),
201
200
  StrInput(
202
201
  name="duration",
@@ -205,9 +204,10 @@ def archive_todo(ctx: AnyContext):
205
204
  default_str="30m",
206
205
  ),
207
206
  StrInput(
208
- name="log",
209
- prompt="Working log",
210
- description="Working log",
207
+ name="start",
208
+ prompt="Working start time (%Y-%m-%d %H:%M:%S)",
209
+ description="Working start time",
210
+ default_str=lambda _: _get_default_start(),
211
211
  ),
212
212
  ],
213
213
  description="🕒 Log work todo",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zrb
3
- Version: 1.0.0a15
3
+ Version: 1.0.0a16
4
4
  Summary: Your Automation Powerhouse
5
5
  Home-page: https://github.com/state-alchemists/zrb
6
6
  License: AGPL-3.0-or-later
@@ -4,8 +4,8 @@ zrb/attr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  zrb/attr/type.py,sha256=4TV5gPYMMrKh5V-yB6iRYKCbsXAH_AvGXMsjxKLHcUs,568
5
5
  zrb/builtin/__init__.py,sha256=seqFeTQk4k9I31oTdVrCDoud4_AzCrdVEZx1VxVUtZk,1744
6
6
  zrb/builtin/base64.py,sha256=1YnSwASp7OEAvQcsnHZGpJEvYoI1Z2zTIJ1bCDHfcPQ,921
7
- zrb/builtin/git.py,sha256=u6tfB6ktZLtT5OqTPXgFCyaKUDTeaoDjfn6Gdo4nQOY,4998
8
- zrb/builtin/git_subtree.py,sha256=BieE7ScL7yI1YBr7fHc70CxpE4xXvht4r-nyqfxOU7c,3236
7
+ zrb/builtin/git.py,sha256=_sknHlMJz5jzmnWlDChzsXF0Nvpc6wICzn2V04HO7Qk,5072
8
+ zrb/builtin/git_subtree.py,sha256=NiCvcezjV4VtiYclIYINWmPv52p6l6A4XVDi9hKOV2s,3311
9
9
  zrb/builtin/group.py,sha256=3xfEx9aEDcq6rDprGKYGqOXN2i0ts4W_RQVErL51o1o,1594
10
10
  zrb/builtin/llm/llm_chat.py,sha256=ATENrihXUMkQ8IoarhacohUe-I_43yb7c0Tl5f69mAI,1397
11
11
  zrb/builtin/llm/tool/cli.py,sha256=n8THj513k1vrXUoZrTcxESmdZzhBOP1-L3Dmup5ZW54,225
@@ -105,7 +105,7 @@ zrb/builtin/shell/autocomplete/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
105
105
  zrb/builtin/shell/autocomplete/bash.py,sha256=-7YDVV7txgJH9mAYSYN0jmvUEeDIzWFvVNY-cY0myF8,1181
106
106
  zrb/builtin/shell/autocomplete/subcmd.py,sha256=WZI6cGWJcn80zSyxOHG7sCMO3Ucix3mZf4xm_xyB_Y0,606
107
107
  zrb/builtin/shell/autocomplete/zsh.py,sha256=9hlq0Wt3fhRz326mAQTypEd4_4lZdrbBx_3A-Ti3mvw,1022
108
- zrb/builtin/todo.py,sha256=7Y6LuVk7V_y_lH_yZn8RugSXzuO2HWViRnxQqH69iQE,10053
108
+ zrb/builtin/todo.py,sha256=nPt_F1d2uurX8jBdpLp8PP0EbYAJN7_4CYqDNqknGOI,10053
109
109
  zrb/callback/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
110
110
  zrb/callback/any_callback.py,sha256=Yhdv5UWHAZSVzj5K2JdxcVQx8x8VX8aZJEivj3NTfZc,247
111
111
  zrb/callback/callback.py,sha256=IQ7r9EnXYHHcNXKBJAk4WFqCqj7WDvflAuCyu5y-27I,849
@@ -225,7 +225,7 @@ zrb/util/string/name.py,sha256=8picJfUBXNpdh64GNaHv3om23QHhUZux7DguFLrXHp8,1163
225
225
  zrb/util/todo.py,sha256=LharTudwr1gTNmt8iDUkQ6u21bGaCqVJh54Txe0bMOk,13529
226
226
  zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
227
227
  zrb/xcom/xcom.py,sha256=P4aYHdE3FRsTsNrXGyW8N44IWZjw-vG_qys1Ymn3aBg,1572
228
- zrb-1.0.0a15.dist-info/METADATA,sha256=anjZuGKZzK7q-wklDNp31lVXsWfpS3BI93kgGtsNrbk,4106
229
- zrb-1.0.0a15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
230
- zrb-1.0.0a15.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
231
- zrb-1.0.0a15.dist-info/RECORD,,
228
+ zrb-1.0.0a16.dist-info/METADATA,sha256=ALjKghi3BpZM9lzDaDcwVzjBh4zrKuvKszI6vU_jhKg,4106
229
+ zrb-1.0.0a16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
230
+ zrb-1.0.0a16.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
231
+ zrb-1.0.0a16.dist-info/RECORD,,
File without changes