Skip to content

fix(cli): align log action column - #465

Open
slegarraga wants to merge 1 commit into
DobermanCore:mainfrom
slegarraga:fix/log-action-column-width
Open

fix(cli): align log action column#465
slegarraga wants to merge 1 commit into
DobermanCore:mainfrom
slegarraga:fix/log-action-column-width

Conversation

@slegarraga

Copy link
Copy Markdown
Contributor

Closes #428

What

  • Derives the doberman log action-column width from ActionType instead of hardcoding 13 characters.
  • Adds regression coverage proving git_op and network_request keep their target/reason columns aligned.

Verification

  • .venv/bin/pytest tests/unit/test_cli_log_jsonl.py -q
  • .venv/bin/pytest tests/unit -k cli_log -q
  • .venv/bin/pytest tests/unit -k 'cli' -q — 227 passed, 1 skipped.
  • .venv/bin/ruff check src tests
  • .venv/bin/ruff format --check src/doberman/cli/main.py tests/unit/test_cli_log_jsonl.py
  • git diff --check

Derive the action-type width from ActionType so long network and package rows no longer shift later columns. Closes DobermanCore#428.
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.

cli: doberman log columns shift for network_request and package_install rows

1 participant