apiKeyPassedAsArg reports whether the REST API key is on the command line, not in the FABRIC_API_KEY environment variable or the .env file.
(args []string)
| 59 | // apiKeyPassedAsArg reports whether the REST API key is on the command line, |
| 60 | // not in the FABRIC_API_KEY environment variable or the .env file. |
| 61 | func apiKeyPassedAsArg(args []string) bool { |
| 62 | for _, a := range args { |
| 63 | if a == "--api-key" || strings.HasPrefix(a, "--api-key=") { |
| 64 | return true |
| 65 | } |
| 66 | } |
| 67 | return false |
| 68 | } |
no outgoing calls