command

package module
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: 6 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	PerlLoop   perlLoopFlag = true
	PerlNoLoop perlLoopFlag = false
)
View Source
const (
	PerlPrint   perlPrintFlag = true
	PerlNoPrint perlPrintFlag = false
)
View Source
const (
	PerlAutoSplit   perlAutoSplitFlag = true
	PerlNoAutoSplit perlAutoSplitFlag = false
)

Variables

This section is empty.

Functions

func Perl

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

Perl returns a Command that forks perl with a script.

Two call shapes are supported:

Perl("script", opts...)              // script as required positional
Perl(PerlScript("script"), opts...)  // script as a flag (preferred in examples)

Options: PerlLoop (-n), PerlPrint (-p), PerlAutoSplit (-a), PerlScript (script body), positional io.Reader / gloo.File for input.

Types

type PerlScript

type PerlScript string

PerlScript holds the perl source passed to perl -e. Use either Perl(PerlScript("..."), opts...) or Perl("...", opts...).

Directories

Path Synopsis
Package alias provides unprefixed names for the perl command and its flags.
Package alias provides unprefixed names for the perl command and its flags.

Jump to

Keyboard shortcuts

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