Skip to content

Refactor: Consolidate and standardize generator logic #17

@AnouarMohamed

Description

@AnouarMohamed

Description

The current generator structure is split across multiple files with inconsistent naming and redundant logic. Specifically, angular.py/scaffold_angular.py and spring.py/scaffold_spring.py share similar Jinja2 setup and configuration patterns.

Tasks

  1. Consolidate Generators: Merge initialization and scaffolding logic for each framework into unified modules (e.g., devctl/generators/angular/).
  2. Standardize Naming: Fix the confusion between 'init' and 'scaffold' by using consistent terminology.
  3. Centralize Template Management: Create a shared utility or class to handle Jinja2 environment setup to avoid path duplication across multiple files.

Affected Files

  • devctl/generators/angular.py
  • devctl/generators/scaffold_angular.py
  • devctl/generators/spring.py
  • devctl/generators/scaffold_spring.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions