add: Versionierung
- semantic versioning - auto update on build - git hash zusätzlich - Anzeige per cli und im Fenster
This commit is contained in:
1 parent
250a473253
commit
102b485794
6 files changed
+131
-6
No files matched your search
+8
-1
@@ -23,8 +23,15 @@ from src.validators import show_preview_and_confirm, validate
|
||||
|
||||
|
||||
@click.group()
|
||||
def cli() -> None:
|
||||
@click.pass_context
|
||||
def cli(ctx: click.Context) -> None:
|
||||
"""Anwesenheit PDF Generator — Excel → PDF"""
|
||||
try:
|
||||
config = load_config()
|
||||
version = config.get("version", "unknown")
|
||||
click.echo(f"Anwesenheit PDF Generator v{version}")
|
||||
except Exception as exc:
|
||||
click.echo(f"Fehler beim Laden der Konfiguration: {exc}", err=True)
|
||||
|
||||
|
||||
@cli.command("validate")
|
||||
|
||||
Reference in new issue
Block a user