feat: add missing config-get triggers
This commit is contained in:
21
plugins/config/triggers.go
Normal file
21
plugins/config/triggers.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user