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

fix: --cmd breaking with >1 argument, kill child processes correctly #181

Merged
merged 5 commits into from
Oct 1, 2023
Merged

fix: --cmd breaking with >1 argument, kill child processes correctly #181

merged 5 commits into from
Oct 1, 2023

Conversation

headblockhead
Copy link
Contributor

@headblockhead headblockhead commented Sep 30, 2023

Fixes issue 4 in the #146 experience report.
Maybe add tests for the cli to prevent future issues.

@headblockhead headblockhead marked this pull request as ready for review September 30, 2023 22:38
return err
}
}
running = map[string]*exec.Cmd{}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go 1.21 brings in the new "clear" function, but I want to stick to supporting older versions of Go until they're unsupported by the Go team.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is good!

cmd/templ/generatecmd/run/run.go Outdated Show resolved Hide resolved
cmd/templ/generatecmd/run/run.go Outdated Show resolved Hide resolved
cmd/templ/generatecmd/run/run.go Outdated Show resolved Hide resolved
@a-h a-h merged commit cdb04a6 into a-h:main Oct 1, 2023
@a-h a-h added hacktoberfest Good issue for hacktoberfest. hacktoberfest-accepted labels Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Good issue for hacktoberfest. hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants