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

annotate

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package annotate implements `gtb annotate`, which records a command's MCP tool annotations in the manifest and re-renders its cmd.go (spec 0201 D5).

Index

Constants

This section is empty.

Variables

View Source
var ErrClearWithHints = errors.NewSentinel("gtb.annotate.clear_with_hints", "annotate: --clear cannot be combined with a hint flag")

ErrClearWithHints reports --clear combined with a hint flag.

View Source
var ErrNothingToAnnotate = errors.NewSentinel("gtb.annotate.nothing", "annotate: give at least one hint flag, or --clear")

ErrNothingToAnnotate reports an invocation that names no hint and no --clear.

Functions

func NewCmdAnnotate

func NewCmdAnnotate(p *props.Props) *setup.Command

NewCmdAnnotate returns `gtb annotate <command-path>`. Each hint flag is tri-state: given bare it sets true, given as --flag=false it sets false, and not given it leaves the recorded value alone. --clear removes the block.

Types

This section is empty.

Jump to

Keyboard shortcuts

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