shell

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdRunner

type CmdRunner interface {
	Run() error
}

CmdRunner represents an interface for exec.Cmd.

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command implements the CmdInterface using exec.Cmd.

func (*Command) Run

func (c *Command) Run() error

nolint:wrapcheck

type Interface

type Interface interface {
	NewCommand(name string, args ...string) CmdRunner
}

type Shell

type Shell struct{}

func (*Shell) NewCommand

func (s *Shell) NewCommand(name string, args ...string) CmdRunner

nolint:ireturn NewCommand creates a new Command instance with the given name and arguments.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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