Support for global and local odo-config files (#1168)

* renamed the config file

* broke the config into global and local config structs

* lookup added

* use the global config everywhere

* resolved tests

* resolved logs and application_test

* added support for global flag in utils config cli

* resolved failed tests

* resolved code climate issues

* updated help and added e2e test

* updated the cli reference

* added configuration check, common config and success message

* added check for user confirmation

* Resolved the failing config test

* add force flag

* not show default values when doing config view

* resolved failing tests

* created proxy New method and refactored to CVR pattern for global stuff

* resolved tests

* used the check in set local config

* local odo config created only when we set config

* added delete command and tests

* removed focus

* resolved code climate error

* resolved go ci issue

* resolved config tests

* CamelCased the config and regen the cli ref

* removed allNil check and added delete invalid error message

* renamed delete to unset and updated tests

* removed fit

* resolved local build issue
This commit is contained in:
girish ramnani
2019-02-11 14:34:39 +05:30
committed by Tomas Kral
parent 6dfdfc1666
commit 2bc274e3bc
14 changed files with 821 additions and 341 deletions

View File

@@ -3,6 +3,8 @@ package main
import (
"flag"
"fmt"
"os"
"github.com/golang/glog"
"github.com/posener/complete"
"github.com/redhat-developer/odo/pkg/config"
@@ -12,7 +14,6 @@ import (
"github.com/redhat-developer/odo/pkg/odo/util/completion"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"os"
)
func main() {