Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow module:create Command to Check Specific Paths #1025

Open
wonhee-kim opened this issue Feb 20, 2025 · 1 comment
Open

Comments

@wonhee-kim
Copy link

Hello,

I would like to request a feature enhancement for the module:create command in Ceedling.

Current Behavior

The module:create command currently checks only the first entry in the :source path and creates files in that directory. This behavior can lead to issues where files are created even if they already exist in subdirectories of the specified path.

Desired Behavior

I would like the module:create command to allow specifying a particular path or set of paths to check before creating files. This would ensure that files are not created if they already exist in any specified path or subdirectory.

Example

Given the following project.yml configuration:

:paths:
  :source:
    - D:/Unit_Test/AAA/**
    - D:/Unit_Test/AAA/BBB/**
    - D:/Unit_Test/AAA/BBB/CCC/**

The module:create command should allow specifying a particular path or set of paths to check before creating files. For example:
ceedling module:create[<module_name>] --paths=D:/Unit_Test/AAA/BBB/,Unit_Test/AAA/BBB/CCC/

Benefits
This enhancement would prevent the creation of duplicate files and ensure that the module:create command behaves more intuitively by considering specified paths.

Thank you for considering this feature request.

Best regards
@mvandervoord
Copy link
Member

Hi @wonhee-kim -- your desired behavior is still valid, but I also want to bring up that you don't have the current behavior fully captured here. Perhaps you are unaware that the module generator will search through the paths specified in project.yml to find the closest match? I'll refer you to the section on paths in the plugin's readme

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

No branches or pull requests

2 participants