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

Run remote task #488

Open
joelwurtz opened this issue Jun 16, 2024 · 2 comments
Open

Run remote task #488

joelwurtz opened this issue Jun 16, 2024 · 2 comments

Comments

@joelwurtz
Copy link
Member

joelwurtz commented Jun 16, 2024

Some task may be provided by external providers or author that need to be run only once, some of them comes to my mind :

  • Running a rector recipe
  • Creating a project from an existing repository / template

There is a tool that does that in js : npx

I think we could provide similar behavior with castor with a specific command something like :

castor execute vendor/package-exec

Basically castor would install this composer repository inside a temp folder and run the first bin file declared

We could specify a version :

castor execute vendor/[email protected]

If there is different binaries we can imagine allow the following

castor execute --bin specific-binary vendor/package-exec 

All arguments passed after the package could be transferred to the bin so someone can do

castor execute vendor/package-exec --package-exec-arg value
@lyrixx
Copy link
Member

lyrixx commented Jun 17, 2024

Remind me https://github.com/sensiolabs/melody :D

@Nek-
Copy link
Contributor

Nek- commented Oct 27, 2024

I see the issue mention npx but not cpx. So here is my two cent: https://cpx.dev/

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

3 participants