doploy-cli 0.2.2__tar.gz → 0.2.3__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: doploy-cli
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: doploy CLI: watch builds, read logs, and drive Odoo deployments from a terminal
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://doploy.io
@@ -299,14 +299,20 @@ def cmd_tests(args):
299
299
  c = data['counts']
300
300
  print(f"build {data['build_id']} [{data['build_status']}] — "
301
301
  f"{c['error']} errors, {c['fail']} failures, {c['warning']} warnings")
302
+ loader_rows = 0
302
303
  for r in data['results']:
303
304
  if r['error_type'] not in ('ERROR', 'FAIL') and not args.warnings:
304
305
  continue
305
- where = (f"{r['module']}.{r['test']}" if r.get('test') and r['test'] != 'Unknown'
306
- else '(module loading)')
306
+ is_test = bool(r.get('test')) and r['test'] != 'Unknown'
307
+ if not is_test and not args.details:
308
+ loader_rows += 1 # module-loading summaries: only interesting with --details
309
+ continue
310
+ where = f"{r['module']}.{r['test']}" if is_test else '(module loading)'
307
311
  print(f"\n[{r['error_type']}] {where}")
308
312
  if args.details:
309
313
  print(r['details'])
314
+ if loader_rows:
315
+ print(f"\n(+{loader_rows} module-loading message(s); use --details to see them)")
310
316
 
311
317
 
312
318
  def cmd_rebuild(args):
@@ -360,8 +366,15 @@ def cmd_logs(args):
360
366
  print(ln)
361
367
  if not args.follow:
362
368
  if args.filter:
363
- print(f"... ({len(shown)} matching line(s) in the last {data.get('total_lines', '?')}; "
364
- f"raise --lines to search further back)", file=sys.stderr)
369
+ searched = data.get('searched_lines')
370
+ total = data.get('total_lines')
371
+ if searched and total and total > searched:
372
+ scope = f"the last {searched} of {total} lines"
373
+ elif searched or total:
374
+ scope = f"all {total or searched} lines"
375
+ else:
376
+ scope = 'the recent log'
377
+ print(f"... ({len(shown)} matching line(s) in {scope})", file=sys.stderr)
365
378
  elif data.get('truncated'):
366
379
  print(f"... (showing last {len(shown)} lines; use --lines to see more)", file=sys.stderr)
367
380
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: doploy-cli
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: doploy CLI: watch builds, read logs, and drive Odoo deployments from a terminal
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://doploy.io
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "doploy-cli"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "doploy CLI: watch builds, read logs, and drive Odoo deployments from a terminal"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
File without changes
File without changes
File without changes