Skip to content

Commit

Permalink
Test config
Browse files Browse the repository at this point in the history
  • Loading branch information
MeNsaaH committed Feb 12, 2022
1 parent 04b7e48 commit 8810a8f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/charts.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ const (
tcellTerminal = "tcell"
)

func charts_main() {
func Main() {
log.Debug("Starting Saido Main")
t, err := tcell.New(tcell.ColorMode(terminalapi.ColorMode256))
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ var rootCmd = &cobra.Command{

cfg := config.GetConfig()
log.Infof("%v", cfg)
// charts.Main()
},
}

Expand Down
12 changes: 6 additions & 6 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ hosts:
"192.0.1.4":
connection:
type: local
children:
eu-west1:
eu-west1:
connection:
type: ssh
privateKeyPath: /path/to/private/key
port: 2222
children:
hosts:
"192.0.10.3":
"192.0.10.5":
connection:
type: ssh
privateKeyPath: /path/to/private/key
port: 2222

metrics:
- memory
Expand Down
4 changes: 4 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ func LoadConfig(configPath string) *Config {
return config
}

func (cf *Config) parse() {

}

func GetConfig() *Config {
return config
}
Expand Down

0 comments on commit 8810a8f

Please sign in to comment.