shx

package
v0.0.0-...-d69e557 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package shx is like github.com/magefile/mage/sh, but with various fixes such as context integration for Ctrl-C handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(
	ctx context.Context,
	command string,
	args ...string,
) *cmd

func Run

func Run(
	ctx context.Context,
	cmd string,
	args ...string,
) error

func WithCwd

func WithCwd(cwd string) execOpt

func WithEnv

func WithEnv(env map[string]string) execOpt

func WithExpandArgs

func WithExpandArgs() execOpt

func WithOutput

func WithOutput() execOpt

WithOutput makes the command always pass stdout even if not invoked with `mage -v`.

Types

This section is empty.

Source Files

  • doc.go
  • run.go

Jump to

Keyboard shortcuts

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