-
Notifications
You must be signed in to change notification settings - Fork 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
feat: Allow to provide run ID instead of stack ID in some command #253
feat: Allow to provide run ID instead of stack ID in some command #253
Conversation
internal/cmd/stack/stack_selector.go
Outdated
return stack, nil | ||
} else if cliCtx.IsSet(flagRun.Name) { | ||
runID := cliCtx.String(flagRun.Name) | ||
stack, found, err := stackGetByRunID(cliCtx.Context, runID) |
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.
why the double logic (using bool here and not using it the other function)? just return the same error as we do in the previous method maybe?
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.
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.
Good job!
Closes #230