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 16:13:27 +00:00
|
|
|
type Type string
|
|
|
|
|
|
|
|
const (
|
|
|
|
TEXT Type = "text"
|
|
|
|
VARIABLE Type = "variable"
|
|
|
|
)
|
|
|
|
|
2024-08-30 16:08:24 +00:00
|
|
|
type Variant struct {
|
|
|
|
Arguments []string `json:"args"`
|
2024-08-31 16:13:27 +00:00
|
|
|
Type Type `json:"type,omitempty"`
|
2024-08-30 16:08:24 +00:00
|
|
|
Equator string `json:"equator,omitempty"`
|
|
|
|
}
|
2024-08-31 16:26:45 +00:00
|
|
|
|
|
|
|
type Command struct {
|
|
|
|
Name string
|
|
|
|
Arguments []string
|
|
|
|
}
|