sunodo / sunodo

Sunodo monorepo
https://docs.sunodo.io
Apache License 2.0
21 stars 14 forks source link

Add exec sub-command #481

Closed omidasadpour closed 2 weeks ago

omidasadpour commented 3 weeks ago

/close #470

Example:

sunodo exec /bin/bash

image

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: 265770cdea756dd0da725ccc9721876be11ae68d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------- | ----- | | @sunodo/cli | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2024 7:42am
www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2024 7:42am
tuler commented 3 weeks ago

Take a look here on how to handle var args, and not require a -c option

omidasadpour commented 3 weeks ago

Take a look here on how to handle var args, and not require a -c option

Fixed . I just don't know how to allow multiple part commands. like ls -la

I have to set it like this :

sunodo exec "ls -la"
tuler commented 3 weeks ago

I just don't know how to allow multiple part commands. like ls -la

Did you try the static strict = false, as described in the doc?

omidasadpour commented 3 weeks ago

Did you try the static strict = false, as described in the doc?

Yup, Did not work. I'll test again

omidasadpour commented 3 weeks ago

Did you try the static strict = false, as described in the doc?

Yup, Did not work. I'll test again

not working

omidasadpour commented 3 weeks ago

Take a look here on how to handle var args, and not require a -c option

Fixed . I just don't know how to allow multiple part commands. like ls -la

I have to set it like this :

sunodo exec "ls -la"

Actually it does not work because of -. For example I can run this command without double quotes:

sunodo exec ls /home

image

tuler commented 2 weeks ago

Rediscuss the solution for #470 , or if it's necessary