2024-12-13 15:01:40 +08:00
|
|
|
package opt
|
|
|
|
|
|
|
|
type args struct {
|
|
|
|
Version bool
|
|
|
|
Input string
|
|
|
|
Output string
|
|
|
|
Limit int
|
|
|
|
Max int
|
|
|
|
Type string
|
|
|
|
Timeout int
|
2025-02-05 18:07:53 +08:00
|
|
|
Field string
|
2024-12-13 15:01:40 +08:00
|
|
|
Sort string
|
|
|
|
Query string
|
|
|
|
QueryFile string
|
|
|
|
}
|
|
|
|
|
|
|
|
type config struct {
|
2025-01-02 21:38:30 -08:00
|
|
|
Debug bool `json:"-"`
|
|
|
|
Dev bool `json:"-"`
|
|
|
|
DisablePing bool `json:"-"`
|
|
|
|
Args args `json:"-"`
|
2024-12-13 15:01:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var Cfg = &config{}
|