cmd2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BeforeStartFunc func()
View Source
var BeforeStopFunc func()
View Source
var RootCmd = &cobra.Command{
	Use: util.AppName,
}
View Source
var StartFunc func()

Functions

func Execute

func Execute()

func FindPIDWithPort

func FindPIDWithPort(port uint32) string

func FindPidSliceByProcessName

func FindPidSliceByProcessName(name string) []string

FindPidSliceByProcessName get a pid list

func KillProcess

func KillProcess(name string) (err error)

KillProcess ...kill process

func KillProcessByPID

func KillProcessByPID(pid string)

func KillProcessWithPort

func KillProcessWithPort(port uint32) (err error)

func ProcessIsRunning

func ProcessIsRunning(name string) bool

ProcessIsRunning is running

func StdExec

func StdExec(script string) *exec.Cmd

Types

This section is empty.

Jump to

Keyboard shortcuts

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