Go CLI Prompts

Interactive input for Go CLI tools - when a prompt is the right channel at all, how a value resolves from a flag then stdin then a prompt, the shared stdin resolver behind a flag given -, the utils prompt helpers, and the ErrNoTerminal contract that keeps every command scriptable. Use when a command needs to ask the user something, when building or changing utils/input.go, when piping a secret or a file into a command, or when adding a password, free-text, or selection prompt. Triggers on PromptInput, PromptPassword, PromptTextArea, PromptSelect, PromptMultiSelect, ResolveStdin, MarkStdinLine, MarkStdinStream, SetAnnotation, ErrNoTerminal, StdinIsTerminal, a flag whose value is -, bubbletea textinput, and textarea.

Tanq16 71b1e33 12.8 KB Updated

File contents

Tanq16/claudex/tree/main/internal/embedded/presets/private/skills/go-cli-prompts commit 71b1e33046

Frequently asked questions

npx skillmds@latest add tanq16/go-cli-prompts