-
Notifications
You must be signed in to change notification settings - Fork 2
add multiple docker cmds via api #12
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
base: main
Are you sure you want to change the base?
Conversation
Aeswolf
left a comment
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.
A little concern from me.
Aeswolf
left a comment
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.
Reducing redundancy
|
|
||
| // Validate the command. | ||
| if dockerCmd.Command == "" { | ||
| errorMsg = "Docker command cannot be empty" |
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.
Can you replace the errorMsg and the code here with the writeError method?
| // Create a new Parser | ||
| p, err := parser.New(dockerCmd.Command) | ||
| if err != nil { | ||
| errorMsg = fmt.Sprintf("Error creating parser: %v", err) |
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.
Can you replace the errorMsg and code with the writeError method?
No description provided.