-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add exec methods for plugin #15
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15 +/- ##
==========================================
+ Coverage 51.44% 55.17% +3.73%
==========================================
Files 7 7
Lines 208 232 +24
==========================================
+ Hits 107 128 +21
- Misses 101 104 +3 |
func (p *Patch) Command(c *Config) *exec.Cmd { | ||
// Command formats and outputs the Patch command from | ||
// the provided configuration to patch resources. | ||
func (p *Patch) Command(c *Config, image string) *exec.Cmd { |
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.
(*Patch).Command
- image
is unused (from unparam
)
if !reflect.DeepEqual(got, want) { | ||
t.Errorf("Command is %v, want %v", got, want) | ||
for _, image := range p.Images { | ||
want := exec.Command( |
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.
G204: Subprocess launched with function call as argument or cmd arguments (from gosec
)
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
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 🐬
No description provided.