executil

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package executil implements a function for executing a command line.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(name string, arg ...string) (output string, err error)

func SetDebug added in v0.12.0

func SetDebug(debug bool)

SetDebug turns debugging on and off. This will output the command before executing it.

Types

type ErrExecuteCommand

type ErrExecuteCommand struct {
	Output string
}

func (ErrExecuteCommand) Error

func (e ErrExecuteCommand) Error() string

Jump to

Keyboard shortcuts

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