INNER CODE UNIT · Go

main

gabrie30/ghorg · scripts/local-gitea/test-runner/main.go:331

func main() {
	var (
		configPath = flag.String("config", "configs/test-scenarios.json", "Path to test scenarios configuration file")
		baseURL    = flag.String("base-url", "http://gitea.example.com:3000", "Gitea base URL")
		token      = flag.String("token", "", "Gitea API token")
		ghorgDir   = flag.String("ghorg-dir", "", "Ghorg directory (default: $HOME/ghorg)")
		testName   = flag.String("test", "", "Run specific test by name")
		listTests  = flag.Bool("list", false, "List available tests")
	)
	flag.Parse()

	if *token == "" {
		log.Fatal("Token is required")
	}

	if *ghorgDir == "" {
		homeDir, err := os.UserHomeDir()
		if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…