baucli 1.0.3__tar.gz → 1.0.4__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.
- {baucli-1.0.3 → baucli-1.0.4}/PKG-INFO +1 -1
- {baucli-1.0.3 → baucli-1.0.4}/baucli/__init__.py +1 -1
- {baucli-1.0.3 → baucli-1.0.4}/baucli/cli.py +25 -12
- {baucli-1.0.3 → baucli-1.0.4}/baucli.egg-info/PKG-INFO +1 -1
- {baucli-1.0.3 → baucli-1.0.4}/setup.py +1 -1
- {baucli-1.0.3 → baucli-1.0.4}/README.md +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/apex_rebuild.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/apexlang.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/api.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/config.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/db/__init__.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/db/mssql.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/db/mysql.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/db/oracle.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/db/postgresql.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/docmig.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/git.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/legacy/__init__.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/legacy/delphi.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/mcp_server.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/project.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/rag_embed.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/sample_scan.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/scope_scan.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/screenshot.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/seed_check.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/stress.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli/sync.py +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli.egg-info/SOURCES.txt +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli.egg-info/dependency_links.txt +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli.egg-info/entry_points.txt +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli.egg-info/requires.txt +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/baucli.egg-info/top_level.txt +0 -0
- {baucli-1.0.3 → baucli-1.0.4}/setup.cfg +0 -0
|
@@ -2072,18 +2072,23 @@ def status():
|
|
|
2072
2072
|
console.print(sync_table)
|
|
2073
2073
|
console.print()
|
|
2074
2074
|
|
|
2075
|
-
# Pending deploys
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2075
|
+
# Pending deploys — só relevantes com uma conexão local segura (sem ela
|
|
2076
|
+
# não há como aplicar). Sem conexão: não lista, só orienta.
|
|
2077
|
+
if not dbs:
|
|
2078
|
+
console.print("\n [dim]Deploys: defina uma conexão de banco "
|
|
2079
|
+
"([cyan]baucli connect[/cyan]) para revisar e aplicar deploys.[/dim]")
|
|
2080
|
+
else:
|
|
2081
|
+
try:
|
|
2082
|
+
deploys = api.deploys_pending()
|
|
2083
|
+
deploy_list = deploys.get("deploys", [])
|
|
2084
|
+
if deploy_list:
|
|
2085
|
+
console.print(f"\n [bold]Pending deploys ({len(deploy_list)}):[/bold]")
|
|
2086
|
+
for d in deploy_list[:5]:
|
|
2087
|
+
console.print(f" #{d.get('id')} {d.get('name', '?')} [{d.get('status', '?')}]")
|
|
2088
|
+
else:
|
|
2089
|
+
console.print(f"\n Pending deploys: 0")
|
|
2090
|
+
except BauApiError:
|
|
2091
|
+
pass
|
|
2087
2092
|
|
|
2088
2093
|
|
|
2089
2094
|
# ═══════════════════════════════════════════════════════════
|
|
@@ -2442,6 +2447,14 @@ def deploy_apply(deploy_ref: str, db_name: str, out_file: str, mark_applied: boo
|
|
|
2442
2447
|
f" Out file: [cyan]{out_file}[/cyan]"])
|
|
2443
2448
|
else:
|
|
2444
2449
|
name, db_config = get_database(cfg, db_name)
|
|
2450
|
+
if not name or not db_config:
|
|
2451
|
+
console.print(
|
|
2452
|
+
"[red]Nenhuma conexão de banco segura definida — não é possível aplicar um deploy.[/red]\n"
|
|
2453
|
+
" Configure uma conexão: [cyan]baucli connect --name <alias> --engine oracle "
|
|
2454
|
+
"--host <host> --port <porta> --service <service> --user <user>[/cyan]\n"
|
|
2455
|
+
" Ou exporte o script para revisar/aplicar manualmente: "
|
|
2456
|
+
f"[cyan]baucli deploy apply {deploy_ref} --out deploy.sql[/cyan]")
|
|
2457
|
+
raise SystemExit(2)
|
|
2445
2458
|
show_db_panel(f"Deploy Apply — {kind.upper()}", db_name=name, db_config=db_config,
|
|
2446
2459
|
extra_lines=[f" Deploy: [cyan]{deploy_ref.upper()}[/cyan]"])
|
|
2447
2460
|
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="baucli",
|
|
5
|
-
version="1.0.
|
|
5
|
+
version="1.0.4",
|
|
6
6
|
description="BAUCLI — AI-powered database documentation CLI for BAU",
|
|
7
7
|
long_description=open("README.md").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
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
|
|
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
|
|
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
|