Skip to content

Prepare base_cli runtime helpers for extraction#1484

Merged
codeforester merged 1 commit into
mainfrom
enhancement/1473-20260705-base-cli-boundary
Jul 6, 2026
Merged

Prepare base_cli runtime helpers for extraction#1484
codeforester merged 1 commit into
mainfrom
enhancement/1473-20260705-base-cli-boundary

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Move Base CLI runtime layout, directory creation, and log-retention pruning helpers into private base_cli._runtime.
  • Keep base_cli.app focused on app registration, command wrapping, and context assembly.
  • Add boundary tests that keep runtime helpers private and out of the public package exports.

Closes #1473

Validation

  • PYTHONPATH=lib/python:cli/python $HOME/.base.d/base/.venv/bin/python -m pytest lib/python/base_cli/tests/test_app_runtime_boundary.py -q
  • PYTHONPATH=lib/python:cli/python $HOME/.base.d/base/.venv/bin/python -m pytest lib/python/base_cli/tests/test_app_runtime_boundary.py lib/python/base_cli/tests/test_app_log_retention.py lib/python/base_cli/tests/test_app_runtime_errors.py -q
  • PYTHONPATH=lib/python:cli/python $HOME/.base.d/base/.venv/bin/python -m pytest lib/python/base_cli/tests tests/test_base_cli_docs.py -q
  • PYTHONPATH=lib/python:cli/python $HOME/.base.d/base/.venv/bin/python -m pylint lib/python/base_cli/app.py lib/python/base_cli/_runtime.py lib/python/base_cli/tests/test_app_runtime_boundary.py
  • PYTHONPATH=lib/python:cli/python $HOME/.base.d/base/.venv/bin/python -m compileall -q lib/python/base_cli/app.py lib/python/base_cli/_runtime.py lib/python/base_cli/tests/test_app_runtime_boundary.py
  • git diff --check
  • env BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash BASE_CACHE_DIR=/private/tmp/base-1473-cli-smoke bin/basectl prompt list

@codeforester codeforester requested a review from a team as a code owner July 6, 2026 02:26
@codeforester codeforester merged commit 908beff into main Jul 6, 2026
26 checks passed
@codeforester codeforester deleted the enhancement/1473-20260705-base-cli-boundary branch July 6, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prepare base_cli for future package extraction

1 participant