refactor api methods
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
2026-10-08 22:18:53 +02:00
parent ffa4786113
commit 85295deb22
7 changed files with 52 additions and 89 deletions
+7 -5
View File
@@ -9,10 +9,11 @@ import (
)
var (
CfgFile string
Verbose int
Overwrite bool
Config CliConfig
CfgFile string
Verbose int
Overwrite bool
ServerName string
Config CliConfig
)
type Server struct {
@@ -22,7 +23,8 @@ type Server struct {
}
type CliConfig struct {
Server map[string]Server `mapstructure:"server"`
ApiVersion string
Server map[string]Server `mapstructure:"server"`
}
func InitCliConfig() {