Skip to content

Commit

Permalink
fix: default plugin install tip should only display if flag is false.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Apr 29, 2024
1 parent 203522f commit 967821c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/plugin_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ func installPlugins(plugins []string, version string, saveDefault bool) {
ensured, err = plugin.EnsureConfiguredPlugins(version)
} else {
ensured, err = plugin.EnsurePlugins(plugins, version, saveDefault)
println(fmt.Sprintf(`ℹ️ Note that these plugins have not been saved as default plugins.

if !saveDefault {
println(fmt.Sprintf(`ℹ️ Note that these plugins have not been saved as default plugins.
This means they are installed only for engine version %s and not any future engine versions.
To change this behaviour, pass the --save-default (-d) flag.`, version))
}
}
if err != nil {
logger.Fatal(err)
Expand Down

0 comments on commit 967821c

Please sign in to comment.