(c *cli.Context)
| 108 | } |
| 109 | |
| 110 | func initConfig(c *cli.Context) error { |
| 111 | // Read configuration file configuration |
| 112 | viper.SetConfigFile(c.String("config")) |
| 113 | if err := viper.ReadInConfig(); err != nil { |
| 114 | return err |
| 115 | } |
| 116 | |
| 117 | // Map configuration file content to structure |
| 118 | err := config.InitConfig() |
| 119 | if err != nil { |
| 120 | return err |
| 121 | } |
| 122 | debug() |
| 123 | |
| 124 | return nil |
| 125 | } |
| 126 | |
| 127 | func debug() { |
| 128 | // Open pprof |
nothing calls this directly
no test coverage detected