dryrun

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package dryrun builds the standard dry-run preview envelopes that tool handlers return when a caller passes dry_run:true.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled(args map[string]any) bool

Enabled reports whether args carries dry_run:true.

func MinimalResult

func MinimalResult(toolName string, args map[string]any) map[string]any

MinimalResult is the dry-run envelope for a destructive tool with no safe read endpoint to preview the target.

func Preview

func Preview(tool string, args map[string]any) map[string]any

Preview is the generic dry-run envelope for a tool that ran no tool-specific validation.

func WrapResult

func WrapResult(result any, toolName string) map[string]any

WrapResult wraps a fetched target resource in a destructive-tool dry-run envelope.

Types

This section is empty.

Jump to

Keyboard shortcuts

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