cmd

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package cmd implements the CLI commands for TestGen.

This package uses Cobra for command-line parsing and Viper for configuration management, providing a hierarchical command structure:

  • testgen generate: Generate tests for source files
  • testgen validate: Validate existing tests and coverage
  • testgen analyze: Analyze codebase for cost estimation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is set at build time via ldflags
	// -ldflags="-X github.com/princepal9120/testgen-cli/cmd.Version=v1.0.0"
	Version = "dev"
)

Functions

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetLogger

func GetLogger() *slog.Logger

GetLogger returns the configured logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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