2024-08-30 16:08:24 +00:00
|
|
|
package util
|
|
|
|
|
|
|
|
type Config struct {
|
2024-08-31 16:13:27 +00:00
|
|
|
Name string `json:"name"`
|
|
|
|
Cmd string `json:"cmd"`
|
|
|
|
Set []*Variant `json:"set,omitempty"`
|
|
|
|
Unset []*Variant `json:"unset,omitempty"`
|
2024-08-30 16:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-31 19:11:27 +00:00
|
|
|
type VariantType string
|
2024-08-31 16:13:27 +00:00
|
|
|
|
|
|
|
const (
|
2024-08-31 19:11:27 +00:00
|
|
|
TEXT VariantType = "text"
|
|
|
|
VARIABLE VariantType = "variable"
|
2024-08-31 16:13:27 +00:00
|
|
|
)
|
|
|
|
|
2024-08-30 16:08:24 +00:00
|
|
|
type Variant struct {
|
2024-09-12 21:17:41 +00:00
|
|
|
Arguments []string `json:"args"`
|
|
|
|
Type VariantType `json:"type,omitempty"`
|
|
|
|
Equator string `json:"equator,omitempty"`
|
|
|
|
DiscardProxy bool `json:"discard,omitempty"`
|
2024-08-30 16:08:24 +00:00
|
|
|
}
|
2024-08-31 16:26:45 +00:00
|
|
|
|
|
|
|
type Command struct {
|
|
|
|
Name string
|
|
|
|
Arguments []string
|
|
|
|
}
|