yes-cli

Crates.ioyes-cli
lib.rsyes-cli
version0.1.0-beta.3
created_at2025-11-24 10:13:57.99605+00
updated_at2025-11-25 02:20:52.996766+00
descriptionSends string repeatedly to stdout
homepagehttps://gitlab.com/hsn10/yes
repositoryhttps://gitlab.com/hsn10/yes.git
max_upload_size
id1947612
size22,219
Radim Kolar (hsn10)

documentation

README

yes - Generates repetitive output

Unlicense Crates.io MSRV 1.56 Safe Rust Dependency status Lines of code Downloads

Overview

A Rust reimplementation of Unix Version 7 yes program.

  • Program yes sends infinite, repetitive string output to stdout.
  • The default output is 'y' for the yes variant and 'n' for the no variant.
  • A user can supply own string to repeat.
  • Newline is added. CRLF on Windows, LF on other systems.
  • -n switch suppresses appending LF.
  • For performace reasons the string is first repeated into an 8K buffer, and then the buffer is sent to stdout.

MSRV

The minimal supported Rust version 1.56. The entire 2021 Rust edition is supported.

No copyright

This is free and unencumbered software released into the public domain.

You may use, modify, distribute, and contribute to this code without restriction. To the extent possible under law, the author(s) of this work waive all copyright and related rights.

Licensed under CC0-1.0 OR Unlicense.

Unlicense logo

Commit count: 0

cargo fmt