Skip to content

Universal Pagination & Modernization#9

Merged
fredvisser merged 2 commits intomainfrom
users/fvisser/shared-code-refactor
Jul 29, 2025
Merged

Universal Pagination & Modernization#9
fredvisser merged 2 commits intomainfrom
users/fvisser/shared-code-refactor

Conversation

@fredvisser
Copy link
Collaborator

🎯 Core Changes

  • Universal Pagination: Implemented 25-item pagination with Y/n prompts across all list commands
  • Infrastructure Modernization: Added comprehensive utility modules for CLI consistency
  • Code Reduction: Eliminated 337+ lines of duplicate code while adding 900+ lines of reusable infrastructure

Key Improvements

  1. Pagination Standardization

    • All list commands: 25-item default (was 1000)
    • Interactive "Show next 25 results? [Y/n]" prompts
    • JSON format: shows all results, Table format: paginated
  2. New Utility Modules Created

    • cli_utils.py (337 lines) - Common utilities & pagination logic
    • universal_handlers.py (183 lines) - Standardized response handling
    • cli_formatters.py (205 lines) - Unified table formatting
    • cli_decorators.py (175 lines) - Extended decorators
  3. Command Modernization

    • All CLI modules updated to use UniversalResponseHandler
    • Consistent inline click decorators
    • Standardized workspace filtering
    • DFF commands fully migrated

@fredvisser fredvisser merged commit 789a95e into main Jul 29, 2025
1 check passed
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.

1 participant