-
Notifications
You must be signed in to change notification settings - Fork 107
Implementing guards #37
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
Conversation
|
@ayakut16 Can you please review this feature and if you have any ideas please lmk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- go.mod: Language not supported
Comments suppressed due to low confidence (1)
pkg/guard/child_process.go:60
- After calling c.cmd.Process.Kill(), consider calling c.cmd.Wait() (or an equivalent cleanup) to ensure the process terminates properly and resources are released.
if c.cmd.Process != nil {
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- go.mod: Language not supported
Sure, I will take a look shortly 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general just some small nits.
Just a thought on naming: I believe proxy would have been a better name in this context because guard command literally proxies another server and it can do more than guarding in the future imo (although i can't think of a usecase now).
I understand that changing a name to already existing command could be troublesome, but just wanted to express my thoughts.
Something like bridge, middleware adapter etc. might also work but maybe this is something to worry about in the future when we actually have another usecases for proxying a server.
wdyt about and maybe using % instead of * like in SQL. and maybe instead of e.g. at last: WDYT? |
|
if we do a or smth |
I think the original syntax is fine;using flags and the * wildcard feels more natural and shell-like. Why do you want to change that ? Of your naming suggestions, I like |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist: