Skip to content

Conversation

grosser
Copy link
Owner

@grosser grosser commented May 29, 2025

I though #1008 was green and I just wanted to rename a few things ... but turns out the test is broken 🤦

rspec ./spec/integration_spec.rb:348
hello world && rspec spec/xxx_spec.rb

instead of echo + run rspec

@andr3i-f I think we need to remove the shellsplit if we want the a && b <files> usecase to work, that is why you added the feature right ?

@grosser
Copy link
Owner Author

grosser commented May 29, 2025

["sh", "-c", (options[:execute_args] + file_list).join(" ")] that works, but it will be weird if anyone has an argument with spaces or does echo "a && b" 😞

@grosser
Copy link
Owner Author

grosser commented May 29, 2025

I updated the spec to work now, we can include the example in the readme or docs since it's not very obvious, but afaik kinda the cleanest approach because otherwise we have to join with " " which gets ugly fast :/

@grosser grosser merged commit 63e9eba into master May 29, 2025
12 of 13 checks passed
@grosser grosser deleted the grosser/clear branch May 29, 2025 16:23
@grosser
Copy link
Owner Author

grosser commented May 29, 2025

I'm pretty happy with the current state, lmk if you see anything wrong and if not I'll release it in a day or so

@andr3i-f
Copy link
Contributor

Sounds good 😄 , I will take a look at it later today. Thanks for your help!

@andr3i-f
Copy link
Contributor

andr3i-f commented May 29, 2025

Thanks for catching that failing test, as I just ran the whole spec to see if there were any failures. But I think it looks good! Maybe we should add an example in the readme/cli to run multiple commands with sh -c since that was a bit tricky (for me atleast) to figure out?

@grosser
Copy link
Owner Author

grosser commented May 30, 2025

5.3.0

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

Successfully merging this pull request may close these issues.

2 participants