shell

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package shell provides platform-aware shell command execution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(command string) *exec.Cmd

Command returns an *exec.Cmd that runs command via the platform's default shell. On Unix, this is "sh -c <command>".

func CommandContext

func CommandContext(ctx context.Context, command string) *exec.Cmd

CommandContext returns an *exec.Cmd that runs command via the platform's default shell. On Unix, this is "sh -c <command>".

Types

This section is empty.

Jump to

Keyboard shortcuts

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