passthrough

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 7 Imported by: 0

README

passthrough example

Wraps the system echo as an audited urfave subcommand via passthrough.Command. Argv validation, audit logging, and exit-code propagation come for free.

$ go run ./examples/passthrough -- echo hello world
hello world
$ go run ./examples/passthrough -- echo 'rm; bad'
# rejected: argv contains a shell metacharacter

Documentation

Overview

Command passthrough demonstrates wrapping an existing binary as an audited urfave/cli subcommand. Run with:

Jump to

Keyboard shortcuts

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