Documentation
¶
Overview ¶
Package modules — git.go will run `git status --short`. Placeholder for Phase 8.
Package modules provides executable commands for each dashboard feature.
Index ¶
- func GenerateReportFile(projectDir string, ds state.Dashboard) (string, error)
- func RunBenchmarks(projectDir string) state.BenchmarkResult
- func RunBinarySize(projectDir string) state.BinaryResult
- func RunCPUProfile(projectDir string) state.ProfileResult
- func RunCoverage(projectDir string) state.CoverageResult
- func RunDeps(projectDir string) state.DepsResult
- func RunGitStatus(projectDir string) state.GitResult
- func RunLint(projectDir string) state.LintResult
- func RunTests(projectDir string) state.TestsResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateReportFile ¶
GenerateReportFile creates a markdown report for the current dashboard state and writes it to the project directory.
func RunBenchmarks ¶
func RunBenchmarks(projectDir string) state.BenchmarkResult
RunBenchmarks executes `go test -bench=. -benchmem ./...` and parses results. Blocking — call from a tea.Cmd.
func RunBinarySize ¶
func RunBinarySize(projectDir string) state.BinaryResult
RunBinarySize builds the project into a temp binary, measures its size, and cleans up. Blocking — call from a tea.Cmd.
func RunCPUProfile ¶ added in v0.1.4
func RunCPUProfile(projectDir string) state.ProfileResult
RunCPUProfile executes go test with cpuprofile on one package and generates an inline Unicode flamegraph for terminal rendering.
func RunCoverage ¶
func RunCoverage(projectDir string) state.CoverageResult
RunCoverage executes `go test -cover ./...` and parses the aggregate coverage percentage. Blocking — call from a tea.Cmd.
func RunDeps ¶
func RunDeps(projectDir string) state.DepsResult
RunDeps executes `go list -m all` and parses the module list. Blocking — call from a tea.Cmd.
func RunGitStatus ¶
RunGitStatus executes `git status --short` and categorizes changed files. Blocking — call from a tea.Cmd.
func RunLint ¶
func RunLint(projectDir string) state.LintResult
RunLint executes `golangci-lint run` in the project directory and parses the output into a LintResult. Blocking — call from a tea.Cmd.
func RunTests ¶
func RunTests(projectDir string) state.TestsResult
RunTests executes `go test ./...` in the project directory and returns a fully populated TestsResult. This function is blocking and should be called from a Bubble Tea Cmd (goroutine).
Types ¶
This section is empty.