command

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Return

func Return(command string, showCommand bool) string

Return function is trickier with real-time printing AND returning a single string. If you need both, you would need to stream and also buffer simultaneously. The original Return function's behavior of printing AFTER buffering is incompatible with real-time printing. If you need to capture the full output AND print real-time, you'd modify a function like this:

func Run

func Run(command string, showCommand bool)

Run executes a command and prints its output line by line in real-time

Types

This section is empty.

Jump to

Keyboard shortcuts

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