modules

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 12 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateReportFile

func GenerateReportFile(projectDir string, ds state.Dashboard) (string, error)

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

func RunGitStatus(projectDir string) state.GitResult

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.

Jump to

Keyboard shortcuts

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