Skip to content

Commit

Permalink
Remove duplicate output messages when retrieving addons
Browse files Browse the repository at this point in the history
  • Loading branch information
dyoung522 committed Sep 5, 2024
1 parent fdac5ab commit e3ece14
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
4 changes: 0 additions & 4 deletions cmd/check/addons/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ func execute(cmd *cobra.Command, args []string) {
var dependencyArray = [2][]string{}
var verbosity = viper.GetInt("verbosity")

if verbosity >= 1 {
fmt.Println("Building a list of addons and their dependencies... please wait...")
}

addons, errs := addonTools.Run()

if len(errs) > 0 {
Expand Down
5 changes: 0 additions & 5 deletions cmd/check/saved_vars/saved_vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ func execute(cmd *cobra.Command, args []string) {
var AppFs = afero.NewOsFs()
var extraneousSavedVars []addonTools.SavedVars

if verbosity >= 1 {
fmt.Println("Building a list of addons and their dependencies... please wait...")
}

addons, errs := addonTools.Run()

if len(errs) > 0 {
for _, e := range errs {
fmt.Println(e)
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var cfgFile string
// RootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{
Use: "esotools",
Version: "0.1.0",
Version: "0.1.1",
Short: "tools used to list, install, and validate ESO AddOns",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
verbosity, _ := cmd.Flags().GetCount("verbose")
Expand Down

0 comments on commit e3ece14

Please sign in to comment.