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

Allow to delete a module version #256

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

tomasmik
Copy link
Contributor

@tomasmik tomasmik commented Sep 13, 2024

➜  spc module delete-version --id gitlbam --versionid 01J537F77FRHBXVSEPXWNGFBX4
Module version "1.7.5" has been deleted

We already allow you to create versions using spacectl, so let's allow you to delete them as well.

Closes: #254

@@ -8,6 +8,12 @@ var flagModuleID = &cli.StringFlag{
Required: true,
}

var flagVersionID = &cli.StringFlag{
Name: "versionid",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not a fan of this, but life is life. unless someone has a better idea?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could provide the version itself, not the ID?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that would require changes in the backend, so i'd rather not do that :/

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.

LGTM, left a comment about the version flag.

@tomasmik tomasmik merged commit dd17a6f into main Sep 13, 2024
8 of 9 checks passed
@tomasmik tomasmik deleted the allow-to-delete-module-version branch September 13, 2024 13:06
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.

Feature request: spacectl module delete-version
3 participants