File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,19 +74,19 @@ func runSearchCommand(cmd *cobra.Command, args []string) {
74
74
os .Exit (commands .ErrCoreConfig )
75
75
}
76
76
77
- message := output.LibSearchResults {
77
+ res := output.LibSearchResults {
78
78
Libraries : []* libraries.Library {},
79
79
}
80
80
for _ , lib := range status .Libraries {
81
81
if strings .Contains (strings .ToLower (lib .Name ), query ) {
82
- message .Libraries = append (message .Libraries , lib )
82
+ res .Libraries = append (res .Libraries , lib )
83
83
}
84
84
}
85
85
86
- if len (message .Libraries ) == 0 {
87
- formatter .PrintErrorMessage (fmt .Sprintf ("No library found matching `%s` search query" , query ))
86
+ if len (res .Libraries ) == 0 {
87
+ formatter .Print (fmt .Sprintf ("No library found matching `%s` search query" , query ))
88
88
} else {
89
- formatter .Print (message )
89
+ formatter .Print (res )
90
90
}
91
91
logrus .Info ("Done" )
92
92
}
You can’t perform that action at this time.
0 commit comments