exec

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package exec provides a set of system-related functions such a Run that runs an application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(app string, opts ...Option) ([]byte, error)

Run executes the application `app` using the parameters defines by `options`. It returns the output of the application, and an error if any.

Types

type Option

type Option func(opts *options)

Option allows parameterizing the Run function.

func WithArgs

func WithArgs(args ...string) Option

WithArgs sets the arguments `args` used by the application.

func WithVerbose

func WithVerbose() Option

WithVerbose requests to print on stdout the command issued if an error occurred.

Jump to

Keyboard shortcuts

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