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

feat: add exec methods for plugin #15

Merged
merged 6 commits into from
Feb 13, 2020
Merged

feat: add exec methods for plugin #15

merged 6 commits into from
Feb 13, 2020

Conversation

jbrockopp
Copy link
Contributor

No description provided.

@jbrockopp jbrockopp added the feature Indicates a new feature label Feb 13, 2020
@jbrockopp jbrockopp requested a review from a team as a code owner February 13, 2020 01:47
@jbrockopp jbrockopp self-assigned this Feb 13, 2020
@jbrockopp jbrockopp mentioned this pull request Feb 13, 2020
@codecov
Copy link

codecov bot commented Feb 13, 2020

Codecov Report

Merging #15 into master will increase coverage by 3.73%.
The diff coverage is n/a.

Impacted file tree graph

@@            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 {

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(

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)

Copy link
Collaborator

@wass3r wass3r left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@kneal kneal left a comment

Choose a reason for hiding this comment

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

LGTM 🐬

@kneal kneal merged commit bcca6f5 into master Feb 13, 2020
@kneal kneal deleted the feature/exec branch February 13, 2020 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants