argv

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package argv expands {placeholder} templates in command lines. Arguments are never passed through a shell, so values cannot inject commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(args []string, vars map[string]string) []string

Expand replaces {key} in each argument with vars[key] in a single pass, so placeholders inside substituted values (user text) stay literal.

func Join

func Join(wrap, command []string, vars map[string]string) []string

Join returns wrap followed by command, both expanded with vars. It is how every adapter builds its process: wrap is an optional prefix such as a container runner.

Types

This section is empty.

Jump to

Keyboard shortcuts

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