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: Allow to provide run ID instead of stack ID in some command #253

Conversation

0michalsokolowski0
Copy link
Contributor

Closes #230

@0michalsokolowski0 0michalsokolowski0 changed the title feat: Allow to provide runID instead of stackID in some command feat: Allow to provide run ID instead of stack ID in some command Sep 6, 2024
@0michalsokolowski0 0michalsokolowski0 marked this pull request as ready for review September 6, 2024 12:48
internal/cmd/stack/stack_selector.go Outdated Show resolved Hide resolved
internal/cmd/stack/stack_selector.go Show resolved Hide resolved
return stack, nil
} else if cliCtx.IsSet(flagRun.Name) {
runID := cliCtx.String(flagRun.Name)
stack, found, err := stackGetByRunID(cliCtx.Context, runID)
Copy link
Contributor

@tomasmik tomasmik Sep 9, 2024

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@mbialon mbialon left a comment

Choose a reason for hiding this comment

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

Good job!

internal/cmd/stack/stack_selector.go Outdated Show resolved Hide resolved
internal/cmd/stack/stack_selector.go Outdated Show resolved Hide resolved
@0michalsokolowski0 0michalsokolowski0 merged commit 860bc9f into main Sep 13, 2024
9 checks passed
@0michalsokolowski0 0michalsokolowski0 deleted the allow-to-provide-runID-instead-of-stackID-in-some-commands branch September 13, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find Stack given Run ID
3 participants