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

Adds support for installing all referenced plugins when no arguments are given to 'plugin install'. Closes #3451 #3842

Conversation

binaek
Copy link
Contributor

@binaek binaek commented Sep 13, 2023

No description provided.

@binaek binaek added enhancement New feature or request plugin installation labels Sep 13, 2023
@binaek binaek added this to the 0.21.0 milestone Sep 13, 2023
@binaek binaek self-assigned this Sep 13, 2023
cmd/plugin.go Outdated
return

if len(steampipeconfig.GlobalConfig.Plugins) == 0 {
error_helpers.ShowError(ctx, sperr.New("No connections/plugins configured"))
Copy link
Contributor

Choose a reason for hiding this comment

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

"No connections or plugins configured"

cmd/plugin.go Outdated
}

// get the list of plugins to install
for _, plugin := range steampipeconfig.GlobalConfig.Plugins {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use a lookup instead of StringSliceContains

return getCondensedImageRef(r.DisplayImageRef())
}

func getCondensedImageRef(imagePath string) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't imagePath be imageRef?

Can we have a unit test suite please

pkg/ociinstaller/imageref.go Show resolved Hide resolved
@binaek binaek force-pushed the 3451-steampipe-plugin-install-without-arguments-should-discover-required-plugins-and-install branch from 1f978e0 to 97cc404 Compare September 18, 2023 14:47
@kaidaguerre kaidaguerre merged commit c85b6c3 into main Sep 18, 2023
55 checks passed
@kaidaguerre kaidaguerre deleted the 3451-steampipe-plugin-install-without-arguments-should-discover-required-plugins-and-install branch September 18, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

steampipe plugin install without arguments should discover required plugins and install
2 participants