mateodelnorte / meta

tool for turning many repos into a meta repo. why choose many repos or a monolithic repo, when you can have both with a meta repo?
MIT License
2.03k stars 95 forks source link

Question: Can I tell `meta exec` to run commands using Powershell insetad of CMD? #276

Closed eddex closed 2 years ago

eddex commented 3 years ago

🤓 Question

I'm using meta on Windows 10 in PowerShell 7.1.3. When I run meta exec "<some command>", meta seems to use cmd instead of Powershell to run the command.

Example:

Of course I can run Powershell commands like this: meta exec "pwsh -c Get-ChildItem". But I'd like to be able to just pass in a Powershell command to meta exec.

Is there a way to change the default shell meta exec uses to run the commands?

patrickleet commented 3 years ago

Not currently, but looks very doable - PRs welcome - would go in here as an option passed to the call: https://github.com/mateodelnorte/meta-exec/blob/master/index.js

https://stackoverflow.com/a/61219838/237676

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.