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

tools

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package tools defines hmm's core tools: read_file, list_dir, grep, and run_command. Every tool caps its output, and run_command is gated behind --yolo or an interactive y/N.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(cfg Config) []*weft.ToolDef

Set builds the core tool set in a stable order.

Types

type Config

type Config struct {
	Yolo    bool
	Confirm func(question string) bool
}

Config parameterises the tool set. Confirm is the interactive gate for run_command: it receives the full question to put to the user (including the exact command line) and reports whether they approved. A nil Confirm with Yolo unset means run_command refuses — the non-interactive default.

Jump to

Keyboard shortcuts

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