feat: add GetManPage function and integrate parent process name in ProcessDetail
This commit is contained in:
5
app.go
5
app.go
@@ -56,3 +56,8 @@ func (a *App) GetProcessDetail(pid int32) (*backend.ProcessDetail, error) {
|
||||
func (a *App) KillProcess(pid int32, force bool) error {
|
||||
return backend.KillProcess(pid, force)
|
||||
}
|
||||
|
||||
// GetManPage returns the plain-text manual page for the given command.
|
||||
func (a *App) GetManPage(name string) string {
|
||||
return backend.GetManPage(name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user