Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
601e8e2
feat(config): add configuration management commands for generation an…
kzndotsh Dec 21, 2025
139e253
feat(db): introduce comprehensive database command group
kzndotsh Dec 21, 2025
80adc4c
feat(dev): introduce comprehensive development command group
kzndotsh Dec 21, 2025
ce94996
feat(docs): introduce comprehensive documentation command group
kzndotsh Dec 21, 2025
fa3fd9f
feat(test): introduce comprehensive testing command group
kzndotsh Dec 21, 2025
3c20b1e
feat(tux): introduce Tux command group with start and version commands
kzndotsh Dec 21, 2025
c89ab6e
feat(cli): unify CLI entry point and streamline command structure
kzndotsh Dec 21, 2025
77eb298
refactor(cli): remove legacy CLI scripts to streamline codebase
kzndotsh Dec 21, 2025
1ec8749
fix(cli): update CLI entry point for script organization
kzndotsh Dec 21, 2025
3ce698e
feat(db): enhance database initialization with state inspection
kzndotsh Dec 21, 2025
645497d
refactor(db): improve long-running query handling and service disconn…
kzndotsh Dec 21, 2025
326b6c1
refactor(db): enhance table listing with progress indication and impr…
kzndotsh Dec 21, 2025
a5ea422
refactor(dev): restructure development checks with a new Check class
kzndotsh Dec 21, 2025
1281371
refactor(dev): update clean script to use ROOT constant and improve d…
kzndotsh Dec 21, 2025
20c92d2
refactor(docs): streamline documentation build process and improve co…
kzndotsh Dec 21, 2025
51e9c99
refactor(docs): replace zensical config check with utility function
kzndotsh Dec 21, 2025
9e07732
refactor(docs): improve error handling and configuration checks in wr…
kzndotsh Dec 21, 2025
117a5d9
refactor(docs): update wrangler_rollback to use argument for version …
kzndotsh Dec 21, 2025
ec22f55
refactor(docs): enhance wrangler-versions command with improved argum…
kzndotsh Dec 21, 2025
5616154
feat(docs): add utility functions for configuration checks
kzndotsh Dec 21, 2025
dafcbdb
refactor(test): enhance coverage report generation and error handling
kzndotsh Dec 21, 2025
0e539f3
refactor(test): improve HTML report generation and error handling
kzndotsh Dec 21, 2025
ff1e017
refactor(bot): improve bot startup process and error handling
kzndotsh Dec 21, 2025
b0d3a4f
refactor(proc): enhance command execution logging and error reporting
kzndotsh Dec 21, 2025
e3d194b
refactor(main): add debug mode to application startup logging
kzndotsh Dec 21, 2025
c4e348f
refactor(db): enhance error handling and service management across da…
kzndotsh Dec 21, 2025
6969e93
refactor(docs): improve error handling in documentation build and ser…
kzndotsh Dec 21, 2025
e2377e1
refactor(bot): update success message for bot startup
kzndotsh Dec 21, 2025
816aa1b
refactor(validate): improve database URL display in validation output
kzndotsh Dec 21, 2025
1941ff6
refactor(app): improve error handling during bot setup
kzndotsh Dec 21, 2025
3877ad2
refactor(exceptions): add new exception classes for setup and gracefu…
kzndotsh Dec 21, 2025
c335756
refactor(main): enhance error handling in the run function
kzndotsh Dec 21, 2025
706c1f1
refactor(start): streamline bot execution and error handling
kzndotsh Dec 21, 2025
a45ec6e
refactor(docs): improve error handling in documentation server startup
kzndotsh Dec 21, 2025
7a10f8d
refactor(db): streamline health check output and update nuke command …
kzndotsh Dec 21, 2025
40e33d8
refactor(db): improve health check error handling and update nuke com…
kzndotsh Dec 21, 2025
965f186
refactor(start): simplify bot execution flow and enhance error handling
kzndotsh Dec 21, 2025
21b0d65
refactor(app): remove TuxGracefulShutdown from documentation
kzndotsh Dec 21, 2025
4525921
refactor(db): enhance error handling across database commands
kzndotsh Dec 21, 2025
a9905b1
refactor(dev): enhance error handling in development scripts
kzndotsh Dec 21, 2025
279c5e6
refactor(docs): unify error handling and improve feedback in document…
kzndotsh Dec 21, 2025
2504753
refactor(tests): improve error handling and feedback in test scripts
kzndotsh Dec 21, 2025
5649e96
refactor(config): improve error handling and streamline command execu…
kzndotsh Dec 21, 2025
e5d9885
refactor(proc): update logging for command execution
kzndotsh Dec 21, 2025
f1d87f4
refactor(main): add RuntimeError to exception handling
kzndotsh Dec 21, 2025
8651630
refactor(config): enhance error handling in command execution
kzndotsh Dec 21, 2025
1bc1b22
refactor(db): improve error handling and clarity in database scripts
kzndotsh Dec 21, 2025
feabb9b
refactor(docs): enhance error handling and feedback in documentation …
kzndotsh Dec 21, 2025
1b7f4e1
refactor(coverage, parallel): enhance error handling and command exec…
kzndotsh Dec 21, 2025
9485b88
refactor(main): improve runtime error logging
kzndotsh Dec 21, 2025
3bc52f2
refactor(db): enhance user prompts and error handling in database scr…
kzndotsh Dec 21, 2025
2b07f57
refactor(validate): replace progress bar with status indicator for co…
kzndotsh Dec 21, 2025
79d9552
refactor(dev): enhance error handling and user feedback in developmen…
kzndotsh Dec 21, 2025
879a9e1
refactor(docs): improve linting and Wrangler development scripts for …
kzndotsh Dec 21, 2025
5a3d2ce
refactor(proc): improve command output handling and error reporting
kzndotsh Dec 21, 2025
e6e588c
refactor(ui): enhance terminal output formatting and add new utility …
kzndotsh Dec 21, 2025
558700b
feat(model): add Rich representation for BaseModel
kzndotsh Dec 21, 2025
78bf98e
refactor(main): streamline error handling in the run function
kzndotsh Dec 21, 2025
ed4656a
fix(tests): update database CLI command tests for error handling
kzndotsh Dec 21, 2025
bc53e58
feat(pyproject): add type reporting options for unknown variables and…
kzndotsh Dec 21, 2025
58c63ee
refactor(db): improve user confirmation and cleanup in database scripts
kzndotsh Dec 21, 2025
68da0d5
refactor(dev): improve error reporting and progress bar usage in deve…
kzndotsh Dec 21, 2025
2c072db
refactor(docs): improve linting logic and progress bar messaging
kzndotsh Dec 21, 2025
a9fe064
refactor(ui): enhance print_pretty function with indent guides option
kzndotsh Dec 21, 2025
c30c03e
refactor(main): enhance error handling in run function
kzndotsh Dec 21, 2025
a5253f6
refactor(main): add warning for non-int SystemExit codes
kzndotsh Dec 21, 2025
d8ae609
refactor(db): simplify error handling in schema validation
kzndotsh Dec 21, 2025
79df8bd
refactor(dev): improve SystemExit handling in run_check function
kzndotsh Dec 21, 2025
064b788
fix(docs): update error message for strict mode in serve.py
kzndotsh Dec 21, 2025
e3caabe
refactor(docs): improve content validation in lint.py
kzndotsh Dec 21, 2025
b854c58
refactor(db): enhance table listing and error handling in version script
kzndotsh Dec 21, 2025
0cfa9e3
fix(docs): handle KeyboardInterrupt gracefully in serve.py
kzndotsh Dec 21, 2025
b360de3
refactor(coverage): modularize coverage command and browser handling
kzndotsh Dec 21, 2025
47ed559
fix(html): handle KeyboardInterrupt in HTML report generation
kzndotsh Dec 21, 2025
65a803b
fix(main): update database startup command in error logging
kzndotsh Dec 21, 2025
21339eb
fix(main): streamline RuntimeError handling in run function
kzndotsh Dec 21, 2025
e88a0bb
fix(coverage): clarify behavior of quick mode in coverage report
kzndotsh Dec 21, 2025
b1aac69
fix(db): simplify error message in version function
kzndotsh Dec 21, 2025
f11c48f
fix(db, coverage, html): improve error handling for KeyboardInterrupt
kzndotsh Dec 21, 2025
447fde1
Merge branch 'main' into refactor/scripts
kzndotsh Dec 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies = [
repository = "https://github.com/allthingslinux/tux"

[project.scripts]
cli = "scripts.cli:main"
cli = "scripts:main"
tux = "scripts.tux:main"
db = "scripts.db:main"
dev = "scripts.dev:main"
Expand Down Expand Up @@ -318,6 +318,10 @@ root = "src"
[[tool.basedpyright.executionEnvironments]]
root = "scripts"
reportMissingTypeStubs = "none"
reportUnknownVariableType = "none"
reportUnknownMemberType = "none"
reportUnknownArgumentType = "none"
reportUnknownParameterType = "none"

[tool.coverage.run]
source = ["src/tux"]
Expand Down
54 changes: 28 additions & 26 deletions scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
"""
CLI Infrastructure Package.
Unified CLI Entry Point.

This package provides a clean, object-oriented foundation for building CLI applications
with proper separation of concerns and extensibility.
Aggregates all command groups (config, db, dev, docs, test, tux)
into a single root application.
"""

from scripts.base import BaseCLI
from scripts.config import ConfigCLI
from scripts.db import DatabaseCLI
from scripts.dev import DevCLI
from scripts.docs import DocsCLI
from scripts.registry import Command, CommandGroup, CommandRegistry
from scripts.rich_utils import RichCLI
from scripts.test import TestCLI
from scripts.tux import TuxCLI

__all__ = [
"BaseCLI",
"Command",
"CommandGroup",
"CommandRegistry",
"ConfigCLI",
"DatabaseCLI",
"DevCLI",
"DocsCLI",
"RichCLI",
"TestCLI",
"TuxCLI",
]
from scripts import config, db, dev, docs, test, tux
from scripts.core import create_app

# Create the root app
app = create_app(
name="uv run",
help_text="Tux CLI",
)

# Add command groups
app.add_typer(config.app, name="config")
app.add_typer(db.app, name="db")
app.add_typer(dev.app, name="dev")
app.add_typer(docs.app, name="docs")
app.add_typer(test.app, name="test")
app.add_typer(tux.app, name="tux")


def main() -> None:
"""Root entry point for all Tux CLI commands."""
app()


if __name__ == "__main__":
main()
210 changes: 0 additions & 210 deletions scripts/base.py

This file was deleted.

95 changes: 0 additions & 95 deletions scripts/cli.py

This file was deleted.

Loading
Loading