exec

package
v0.0.0-...-a95bf39 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package exec provides osexec.Cmd with partial args.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Partial

type Partial struct {
	osexec.Cmd
}

Partial implements osexec.Cmd with part of arguments applied.

func NewPartial

func NewPartial(args ...string) *Partial

NewParial creates new Partial with os.Stdout and os.Stderr and initial args.

func (*Partial) Finalize

func (p *Partial) Finalize(args ...string) *osexec.Cmd

Finalize finalizes the Parital by copying embedded Cmd and appending remaining args to the Cmd.

func (*Partial) Run

func (p *Partial) Run(args ...string) error

Run finalizes the partial command but appending reminder args to a Cmd and Runs the finalized Cmd.

Jump to

Keyboard shortcuts

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