Skip to content

Refactor CLI code organization and improve cross-platform support #4104

Closed as not planned

Description

@coderabbitai

Description

Several CLI-related TODOs indicate areas where code organization could be improved and cross-platform support strengthened.

Affected Files

  • tools/serverpod_cli/lib/src/util/model_helper.dart:61 - "Move this logic to the code generator instead"
  • tools/serverpod_cli/lib/src/database/migration.dart:87 - "Check if table can be modified"
  • tools/serverpod_cli/test/test_util/endpoint_validation_helpers.dart:10 - "the serverpod import is brittle here"

Suggested Implementation

  • Refactor model helper logic into code generator
  • Implement table modification checks in migration system
  • Test and fix process killing on Windows
  • Improve test utility imports to be more robust
  • Add cross-platform tests

Impact

Better code organization, improved Windows support, more maintainable tests

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions