cmd

package
v0.0.0-...-52e5b9a Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BeforeStartFunc func()

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

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