term

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	Command string
	Time    ProcessTime
	Log     []string
	Exit    int
	// contains filtered or unexported fields
}

Process info

func RunCommand

func RunCommand(command string, notime, log bool) (*Process, error)

RunCommand and return process info

func (*Process) Run

func (p *Process) Run() error

Run the command

type ProcessTime

type ProcessTime struct {
	Real string
	User string
	Sys  string
}

ProcessTime duration info

Jump to

Keyboard shortcuts

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