mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
broke out the preferences and config (#1362)
* broke out the preferences and config * resolved UTs * resolved golangCI comments * resolved some e2e tests * resolved error message in tests * Resolved codeclimate issue * resolved the e2e_test failure * resolved some comments on the PR * renamed GlobalConfig to Preference * made the logic of unset simpler * reverted the test changed * use log instead of fmt for output * resolved e2e test * use log.Info instead of log.Println
This commit is contained in:
@@ -7,11 +7,11 @@ import (
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/posener/complete"
|
||||
"github.com/redhat-developer/odo/pkg/config"
|
||||
"github.com/redhat-developer/odo/pkg/odo/cli"
|
||||
"github.com/redhat-developer/odo/pkg/odo/cli/version"
|
||||
"github.com/redhat-developer/odo/pkg/odo/util"
|
||||
"github.com/redhat-developer/odo/pkg/odo/util/completion"
|
||||
"github.com/redhat-developer/odo/pkg/preference"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/pflag"
|
||||
)
|
||||
@@ -54,7 +54,7 @@ func main() {
|
||||
// Call commands
|
||||
// checking the value of updatenotification in config
|
||||
// before proceeding with fetching the latest version
|
||||
cfg, err := config.New()
|
||||
cfg, err := preference.New()
|
||||
if err != nil {
|
||||
util.LogErrorAndExit(err, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user