terminal

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IsCodeUpdated bool

	TermCmd         TerminalCmd
	TerminalChannel = make(chan string, 1000)
)

Functions

func CmdExecute

func CmdExecute(dir, app string, args []string, showMessage bool)

CmdExecute trigger the Execute function Also init the signal to check signal notification

func KillFunc

func KillFunc() error

KillFunc kills the shell started by the Execute

Types

type TerminalCmd added in v0.0.4

type TerminalCmd struct {
	Dir         string
	App         string
	Args        []string
	ShowMessage bool
}

func (*TerminalCmd) Execute added in v0.0.4

func (term *TerminalCmd) Execute() error

Execute executes shell command

Jump to

Keyboard shortcuts

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