package flag // ServerConfig holds connection details for a named Gitea server. type ServerConfig struct { Host string `json:"host"` Token string `json:"token"` Insecure bool `json:"insecure,omitempty"` } var ( Host string Port int Token string Version string Mode string Insecure bool ReadOnly bool Debug bool // Servers maps a friendly name to its connection config. // Populated from the GITEA_SERVERS env var (JSON object). Servers map[string]ServerConfig )