We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4da297f commit d4f5af0Copy full SHA for d4f5af0
config/config.go
@@ -3,6 +3,7 @@ package config
3
import (
4
"fmt"
5
"os"
6
+ "runtime"
7
8
"github.com/spf13/viper"
9
)
@@ -21,7 +22,11 @@ func init() {
21
22
config.SetConfigName("config")
23
config.SetConfigType("yaml")
24
25
+ // TODO: proper global config path setup
26
sep := string(os.PathSeparator)
27
+ if runtime.GOOS == "linux" {
28
+ config.AddConfigPath("/etc/mcli")
29
+ }
30
config.AddConfigPath(dir + sep + "modem-cli")
31
32
// -- Defaults -- //
0 commit comments