shell

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package shell provides utilities for working with shell commands and scripts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell

type Shell struct{}

Shell provides an implementation for executing system commands.

func NewShell

func NewShell() Shell

NewShell creates and returns a new Shell instance to execute system commands.

func (Shell) Execution

func (s Shell) Execution(
	ctx context.Context,
	cmd command.Command,
) proc.Execution

Execution executes the given command and returns its execution result.

If context is done before execution, it returns an error execution with context error.

Parameters:

  • ctx: The context for managing the command execution lifecycle.
  • cmd: The command to be executed.

Jump to

Keyboard shortcuts

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