Help us shape the future of Go! Take the 2026 Go Developer Survey

insights

package
v0.233.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ModelFlag = "model"

ModelFlag names the flag that picks the model the analysis runs on.

Variables

This section is empty.

Functions

func AddModelFlag

func AddModelFlag(command *cobra.Command)

AddModelFlag declares --model on any command that generates an insights report, so `infer reset insights` spells it the same way.

func EnsureModel

func EnsureModel(ctx context.Context, services *container.ServiceContainer, cfg *config.Config, modelFlag string) error

EnsureModel starts the gateway and selects the model the analysis runs on. A one-shot command has no chat session to inherit a selection from, so without this the generator asks the gateway for an empty model.

func Generate

func Generate(cmd *cobra.Command, services *container.ServiceContainer, cfg *config.Config, since string) (string, error)

Generate resolves the model, runs the analysis and returns the saved report, so `infer reset insights` produces exactly what `infer insights` does.

func NewCommand

func NewCommand(state *runtime.State) *cobra.Command

NewCommand constructs the insights command. It is the headless face of the /insights chat shortcut and reuses it wholesale.

Types

This section is empty.

Jump to

Keyboard shortcuts

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