← 返回
未分类 中文

Yes Tool

Repeatedly output a string (or 'y' by default) for automated scripts, batch confirmation, and pipeline input generation.
重复输出字符串(默认为'y'),用于自动化脚本、批量确认和管道输入生成。
dinghaibin dinghaibin 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 276
下载
💾 0
安装
1
版本
#latest

概述

Yes Tool — Automatic Response Generator

Repeatedly output a string (default: "y") to automatically confirm prompts, fill form inputs, and generate repeated text for testing and automation. Essential for unattended script execution and batch processing.

Quick Start

# Automatically confirm all prompts
yes-tool | apt-get install -y package-name

# Use a custom response
yes-tool "I agree to the terms" | setup-script.sh

Usage

yes-tool [STRING] [OPTIONS]
yes-tool [OPTIONS]  # Default: outputs "y"

Options:
  --count N       Stop after N repetitions
  --lines N       Alias for --count (output N lines)
  --sleep SEC     Add delay between outputs (rate limiting)
  --newline       Include newline after each output (default)
  --no-newline    No trailing newline (contiguous output)
  --hex HEXBYTES  Output repeated hex bytes
  --json          Output as JSON stream

Examples

# Default usage (outputs "y" forever until pipe closes)
yes-tool | rm -rf dir/*

# Custom response for unattended install
yes-tool "YESSIR" | ./configure

# Generate 10 lines of "test data"
yes-tool "test data" --count 10

# Rate-limited output (1 per second)
yes-tool "keepalive" --sleep 1 | nc server 8080

# Output hex bytes instead of text
yes-tool --hex "00FF"

# No newline (continuous single line)
yes-tool "x" --no-newline --count 100

# JSON streaming output
yes-tool "hello" --count 5 --json

Features

  • Default response — outputs "y" for automatic confirmation
  • Custom string — repeat any text or character
  • Count limit — stop after N repetitions
  • Rate limiting — sleep between outputs
  • Hex mode — output raw bytes
  • No-newline mode — contiguous output stream
  • JSON output — structured stream for pipeline testing
  • Pipe-friendly — works with any stdin-consuming process

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 14:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,231
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,118
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,077