command

package module
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 2 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Yes

func Yes(opts ...any) gloo.Source[[]byte]

Yes returns a Source that repeatedly emits a line until the downstream consumer stops reading (the SIGPIPE analogue), mirroring GNU yes.

Flags:

  • YesText(s): the operand to repeat (default "y")
  • YesCount(n): stop after n lines; 0 (the default) repeats forever

Types

type YesCount

type YesCount int

YesCount limits the number of repetitions. Zero means repeat forever until the downstream consumer stops reading. It is an extension beyond POSIX yes, which always repeats indefinitely.

type YesText

type YesText string

YesText sets the string to repeat. Default "y" (GNU yes with no operand).

Directories

Path Synopsis
Package alias provides unprefixed re-exports for the yes command.
Package alias provides unprefixed re-exports for the yes command.

Jump to

Keyboard shortcuts

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