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

Add config list #3528

Merged
merged 14 commits into from
Oct 11, 2024
Merged

Add config list #3528

merged 14 commits into from
Oct 11, 2024

Conversation

MDrakos
Copy link
Member

@MDrakos MDrakos commented Oct 3, 2024

StoryDX-3055 Users can list available and configured config keys/values with `state config`

@github-actions github-actions bot changed the base branch from master to version/0-47-0-RC1 October 3, 2024 23:10
@MDrakos MDrakos marked this pull request as ready for review October 8, 2024 18:40
@MDrakos MDrakos requested a review from Naatan October 8, 2024 18:40
internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Outdated Show resolved Hide resolved
@@ -10,13 +10,13 @@ import (
func newConfigCommand(prime *primer.Values) *captain.Command {
Copy link
Member

Choose a reason for hiding this comment

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

We should mark it unstable, since technically this is a new command.

That means we're marking a command that used to be "stable" as "unstable", but given the original command was just printing help output I don't see a problem with that.

I'm pretty sure unstable doesn't propagate to child commands (ie. config set), but please make sure.

Copy link
Member Author

@MDrakos MDrakos Oct 9, 2024

Choose a reason for hiding this comment

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

It appears that we do set the child commands to unstable as well. https://github.com/ActiveState/cli/blob/master/internal/captain/command.go#L410

Do we want to find a way to work around this?

internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Outdated Show resolved Hide resolved
@MDrakos MDrakos requested a review from Naatan October 9, 2024 23:02
internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Outdated Show resolved Hide resolved
internal/runners/config/config.go Show resolved Hide resolved
@MDrakos MDrakos requested a review from Naatan October 10, 2024 22:16
@MDrakos MDrakos merged commit e09e5b1 into version/0-47-0-RC1 Oct 11, 2024
8 checks passed
@MDrakos MDrakos deleted the DX-3055 branch October 11, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants