Skip to content

Commit

Permalink
fix: config api url
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-singh committed Apr 11, 2022
1 parent d7fd073 commit aa8a6e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

var ConfigFile string
var apiKey string
var apiUrl string

var ConfigCmd = &cobra.Command{
Use: "config",
Expand All @@ -27,7 +28,7 @@ func init() {
viper.BindPFlag("apiKey", ConfigCmd.Flags().Lookup("apiKey"))
viper.SetDefault("apiKey", "")

ConfigCmd.Flags().StringVar(&apiKey, "apiUrl", "", "runpod api url")
ConfigCmd.Flags().StringVar(&apiUrl, "apiUrl", "", "runpod api url")
viper.BindPFlag("apiUrl", ConfigCmd.Flags().Lookup("apiUrl"))
viper.SetDefault("apiUrl", "https://api.runpod.io/graphql")
}

0 comments on commit aa8a6e6

Please sign in to comment.