Skip to content

[RFC] Add target option to all commands (dir relative to the project root) #51

Open
@yceruto

Description

@yceruto

Related with #2 and #49

What about a new target option for each command that allows us to change the target directory where the final skeleton file is generated?

For example make:unit-test FooTest always creates the file class inside tests/ directory, but as the best practice recommends:

By convention, the tests/ directory should replicate the directory of your bundle for unit tests. So, if you're testing a class in the src/Util/ directory, put the test in the tests/Util/ directory.

Something like this make:functional-test FooTest --target=tests/Util will be great to not move each generated file to the corresponding directory and change its namespace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions