MCPcopy Create free account
hub / github.com/GetStream/stream-cli / GetConfig

Function GetConfig

pkg/config/config.go:169–178  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

167}
168
169func GetConfig(cmd *cobra.Command) *Config {
170 cfg := &Config{}
171 err := viper.Unmarshal(cfg)
172 if err != nil {
173 cmd.PrintErr("Configuration is malformed: " + err.Error())
174 os.Exit(1)
175 }
176
177 return cfg
178}
179
180func GetInitConfig(cmd *cobra.Command, cfgPath *string) func() {
181 return func() {

Callers 15

createTokenCmdFunction · 0.92
upsertCmdFunction · 0.92
updatePartialCmdFunction · 0.92
deleteCmdFunction · 0.92
deleteMultipleCmdFunction · 0.92
queryCmdFunction · 0.92
revokeCmdFunction · 0.92
banCmdFunction · 0.92
unbanCmdFunction · 0.92
reactivateCmdFunction · 0.92
deactivateCmdFunction · 0.92
muteCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected