Skip to content

feat: Add commands do copy/backup vendor files and cleanup #56

@flkasper

Description

@flkasper

It would be useful to have commands that can be used to create the .old files and later remove them.

Examples create

vendor/bin/vendor-patches backup vendor/nette/di/src/DI/Extensions/InjectExtension.php vendor/nette/di/src/DI/Extensions/InjectionException.php
# will create
vendor/nette/di/src/DI/Extensions/InjectExtension.php.old
vendor/nette/di/src/DI/Extensions/InjectionException.php.old

Examples create

vendor/bin/vendor-patches cleanup
# will remove
vendor/nette/di/src/DI/Extensions/InjectExtension.php.old
vendor/nette/di/src/DI/Extensions/InjectionException.php.old

Optionally, it would also be conceivable to clean up the .old files using a command option or by asking for confirmation at the end of the generate command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions