Skip to content

Add the ability to sync the recipe of a single package #501

@tsantos84

Description

@tsantos84

Currently sync-recipes syncs all packages that have recipes and can be dangerous if I need to sync only one recipe. A useful improvement would be sync a single recipe so we can have more control in what are being updated. To support that, a separated command to list all packages configured by recipes could be added in this feature, like this:

composer recipe:list which would print:

  • symfony/console [oficial]
  • symfony/validator [oficial]
  • tsantos/serializer-bundle [contrib]

and now is possible to sync one or more package:

composer sync-recipes symfony/console tsantos/serializer-bundle

The same above command could be renamed to:

composer recipe:sync symfony/console tsantos/serializer-bundle

I'm not sure if this command should list packages names or recipes names.

Following this way, we could have a namespace called recipe to hold all commands related to recipes.

  • recipe:list
  • recipe:sync
  • recipe:fix

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