command

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package command provides main command line interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Version returns version string

Types

type CLI

type CLI struct {
	Nodes        int      `short:"n" long:"nodes" required:"" default:"4" help:"Number of nodes"`
	Concurrency  int      `short:"c" long:"concurrency" default:"4" help:"Number of concurrent test executions per node"`
	ScriptsDir   string   `short:"o" long:"scripts-dir" required:"" default:"./test-scripts" help:"Directory to output generated scripts"`
	ScanPackages bool     `` /* 150-byte string literal not displayed */
	Exclude      string   `short:"x" long:"exclude" help:"Regex pattern to exclude packages (used only with --scan-packages)"`
	JSONDir      string   `short:"j" long:"json-dir" default:"./test-json" help:"Directory containing go test -json results"`
	Template     string   `short:"t" long:"template" help:"Path to the template file (optional)"`
	MaxFunctions int      `short:"m" long:"max-functions" default:"0" help:"Maximum number of test functions per package (0: unlimited)"`
	TestFlags    []string `arg:"" help:"Flags to pass to the test binary after --" optional:""`

	BinariesDir      string `short:"p" long:"binaries-dir" default:"./test-bin" help:"Directory to output or containing test binaries"`
	BuildConcurrency int    `short:"b" long:"build-concurrency" default:"4" help:"Concurrency for building test binaries"`
	DisableBuild     bool   `short:"d" long:"disable-build" default:"false" help:"Disable building test binaries (use pre-built binaries by other way)"`

	Version kong.VersionFlag `short:"v" long:"version" help:"Print version and exit"`
	// contains filtered or unexported fields
}

CLI main command line interface

func (*CLI) Run

func (c *CLI) Run() error

Run run the command line

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL