feat: add missing config-get triggers

This commit is contained in:
Jose Diaz-Gonzalez
2020-03-10 18:19:04 -04:00
parent 6d62835734
commit aa156b2834
7 changed files with 91 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
package config
import "fmt"
func TriggerConfigGet(appName string, key string) error {
value, ok := Get(appName, key)
if ok {
fmt.Println(value)
}
return nil
}
func TriggerConfigGetGlobal(key string) error {
value, ok := Get("--global", key)
if ok {
fmt.Println(value)
}
return nil
}