MCPcopy Index your code
hub / github.com/GetStream/stream-cli / prepareViperConfig

Function prepareViperConfig

test/helpers.go:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15)
16
17func prepareViperConfig() {
18 viper.Set("default", "default_app")
19 viper.Set("apps", []config.App{
20 {
21 Name: "default_app",
22 AccessKey: os.Getenv("STREAM_KEY"),
23 AccessSecretKey: os.Getenv("STREAM_SECRET"),
24 ChatURL: config.DefaultChatEdgeURL,
25 },
26 })
27}
28
29func GetRootCmdWithSubCommands(c ...*cobra.Command) *cobra.Command {
30 prepareViperConfig()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected