alias

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

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

import "github.com/gloo-foo/cmd-xargs/alias"
alias.Xargs(alias.MaxArgs(2))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Subprocess

func Subprocess(argv []string) gloo.Command[[]byte, []byte]

Subprocess re-exports the default external-process exec factory.

func Xargs

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

Xargs re-exports the constructor.

Types

type CommandFor

type CommandFor = command.Factory

CommandFor builds the command run for one group's argv.

type Exec

type Exec = command.XargsExec

Exec injects the per-group command factory.

type MaxArgs

type MaxArgs = command.XargsMaxArgs

MaxArgs is the -n flag: max arguments per group.

type MaxProcs

type MaxProcs = command.XargsMaxProcs

MaxProcs is the -P flag: max concurrent invocations.

type Null

type Null = command.XargsNull

Null is the -0 flag: split input on NUL bytes.

type Replace

type Replace = command.XargsReplace

Replace is the -I flag: substitute a token per input line.

Jump to

Keyboard shortcuts

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