-
Notifications
You must be signed in to change notification settings - Fork 0
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(provider): split task.RunCommand into RunCommand and RunCommandWhileStopped #64
Conversation
@@ -224,6 +225,43 @@ func (p *Provider) RunCommand(ctx context.Context, id string, command []string) | |||
return stdout.String(), stderr.String(), execInspect.ExitCode, nil | |||
} | |||
|
|||
func (p *Provider) RunCommandWhileStopped(ctx context.Context, id string, definition provider.TaskDefinition, command []string) (string, string, int, error) { |
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.
It's generally better to return structs, or name the return variables when they go above like 2 or 3.
I would do one of those. Otherwise it can be confusing to reason what is being returned from this func.
Godoc comment would help too
feat(provider): add DigitalOcean provider
fix(provider): allow providers to choose how they parse ports
fix(provider): use task ID instead of volume name for interacting with files
feat(node): add NodeDefinitionModifier
feat(provider): add provider specific configuration
@Mergifyio backport release/v2.x.x |
❌ No backport have been created
Git reported the following error:
|
fix(provider): split task.RunCommand into RunCommand and RunCommandWhileStopped
No description provided.