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

bash

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BashTool

type BashTool struct {
	// contains filtered or unexported fields
}

BashTool executes bash commands.

func NewBashTool

func NewBashTool(projectRoot, binDir string) *BashTool

NewBashTool creates a BashTool with the given project root and optional tools bin directory (prepended to PATH). If projectRoot is empty, commands run with no explicit working directory.

func (*BashTool) Definition

func (t *BashTool) Definition() tools.Definition

func (*BashTool) Execute

func (t *BashTool) Execute(ctx context.Context, args map[string]any) (string, error)

Jump to

Keyboard shortcuts

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