mirror of
https://github.com/ANG13T/SatIntel.git
synced 2026-03-12 21:22:58 -07:00
update env key param name
This commit is contained in:
8
main.go
8
main.go
@@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/ANG13T/SatIntel/cli"
|
"github.com/ANG13T/SatIntel/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
func setEnvironmentalVariable(env_key string) string {
|
func setEnvironmentalVariable(envKey string) string {
|
||||||
reader := bufio.NewReader(os.Stdin)
|
reader := bufio.NewReader(os.Stdin)
|
||||||
fmt.Printf("%s: ", envKey)
|
fmt.Printf("%s: ", envKey)
|
||||||
input, err := reader.ReadString('\n')
|
input, err := reader.ReadString('\n')
|
||||||
@@ -33,10 +33,10 @@ func setEnvironmentalVariable(env_key string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func checkEnvironmentalVariable(env_key string) {
|
func checkEnvironmentalVariable(envKey string) {
|
||||||
_environmental_variable, found := os.LookupEnv(env_key)
|
_, found := os.LookupEnv(envKey)
|
||||||
if !found {
|
if !found {
|
||||||
_environmental_variable = setEnvironmentalVariable(env_key)
|
setEnvironmentalVariable(envKey)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user