shell

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package shell holds shared helpers for rendering, quoting, and wrapping external commands. It is used by the application core, converter adapters, and config-defined tools so command handling stays consistent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(command string) ports.Command

Command wraps a raw command line for execution through the platform shell.

func CommandError

func CommandError(command ports.Command, result ports.CommandResult, err error) error

CommandError wraps a failed command execution with the rendered command line and any captured output.

func CommandStringError

func CommandStringError(command string, result ports.CommandResult, err error) error

CommandStringError is CommandError for commands given as raw strings.

func Line

func Line(command ports.Command) string

Line renders a command as a single shell-quoted line.

func Quote

func Quote(value string) string

Quote quotes a single argument for POSIX shells. Unlike strconv.Quote it uses single quotes, so `$`, backticks, and backslashes stay literal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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