Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Args ¶
type Args struct {
Test *TestCmd `arg:"subcommand:test" help:"Run BDD tests using markdown files"`
Generate *GenerateCmd `arg:"subcommand:generate" help:"Generate code from configuration"`
Version *VersionCmd `arg:"subcommand:version" help:"Print version information and exit"`
NoColor bool `arg:"--no-color" help:"Disable colors" default:"false"`
Verbose bool `arg:"-v,--verbose" help:"Enable verbose logging"`
}
type GenerateCmd ¶
type GenerateCmd struct {
WorkingDir string `arg:"-w,--working-dir" help:"Base directory" default:"." placeholder:"DIR"`
ConfigFileName string `arg:"-c,--config" help:"Config file name" default:"mapper.pkl" placeholder:"NAME"`
DryRun bool `arg:"-d,--dry-run" help:"Preview changes without writing to disk"`
}
type TestCmd ¶
type TestCmd struct {
Files []string `arg:"positional" help:"Markdown files for BDD tests" placeholder:"FILE"`
Name string `arg:"-n,--name" help:"Run test which has matched name (case insensitive)" default:""`
TabSize int `arg:"-t,--tab-size" help:"Number of spaces to use in tab size" default:"8"`
LogGenerate bool `arg:"-l,--log-generate" help:"Log in generate code process" default:"false"`
EmitCode bool `arg:"-e,--emit-code" help:"Emit to code if the test passed" default:"false"`
ShowSetup bool `arg:"-s,--show-setup" help:"Show test setup step, if you are running less than 10 test cases it will be show by default"`
PklBaseURL string `arg:"-p,--pkl-base-url" help:"pkl base url" default:"https://github.com/toniphan21/go-mapper-gen/releases/download/current"`
}
type VersionCmd ¶
type VersionCmd struct{}
Click to show internal directories.
Click to hide internal directories.