command

package module
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址