{"modulePath":"github.com/hellobyte-dev/tester-utils","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package tester_utils\n\n## Functions\n\n```go\nfunc MergeArgsIntoEnv(args CLIArgs, env map[string]string) map[string]string\n```\nMergeArgsIntoEnv merges CLI args into env map (CLI args take precedence)\n\n```go\nfunc Run(args []string, definition tester_definition.TesterDefinition) int\n```\nRun executes the tester with command-line arguments and environment This is the recommended entry point for tester main functions\n\nUsage:\n\n\tos.Exit(tester_utils.Run(os.Args[1:], definition))\n\n```go\nfunc RunCLI(env map[string]string, definition tester_definition.TesterDefinition) int\n```\nRunCLI executes the tester based on user-provided env vars Deprecated: Use Run() instead for command-line argument support\n\n## Types\n\n```go\ntype CLIArgs struct {\n\tStage   string // Stage slug to run (empty = run all)\n\tDir     string // Working directory (empty = current dir)\n\tHelp    bool   // Show help\n\tVersion bool   // Show version\n}\n```\nCLIArgs holds parsed command-line arguments\n\n```go\nfunc ParseArgs(args []string) CLIArgs\n```\nParseArgs parses command-line arguments Supports:\n\n  - ./tester \\[stage]           # positional argument\n  - ./tester --stage \\\u003cslug\u003e    # flag\n  - ./tester -d \\\u003cdir\u003e          # specify directory\n\n```go\ntype Tester struct {\n\t// contains filtered or unexported fields\n}\n```\n\n","path":"github.com/hellobyte-dev/tester-utils","name":"tester_utils","synopsis":"","isRedistributable":true}
