alias

package
v0.1.12 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

Documentation

Overview

Package alias provides unprefixed names for shuf command flags. This allows users to import and use shorter names:

import "github.com/gloo-foo/cmd-shuf/alias"
shuf.Shuf(alias.Count(3), alias.Seed(42))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Echo

func Echo(args ...command.ShufLine) command.ShufEchoArgs

Echo treats the given arguments as input lines to shuffle (-e flag).

func Range

func Range(lo, hi command.ShufBound) command.ShufRangeSpec

Range generates integers from lo to hi (inclusive), shuffled (-i flag).

func Shuf

func Shuf(opts ...any) gloo.Command[[]byte, []byte]

Shuf is the command constructor; it forwards to command.Shuf.

Types

type Count

type Count = command.ShufCount

Count sets the maximum number of output lines (-n flag).

type Seed

type Seed = command.ShufSeed

Seed sets the random seed for deterministic output (--seed flag).

Jump to

Keyboard shortcuts

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