Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: process manager #1

Open
5 tasks
kamilsk opened this issue Jan 7, 2020 · 0 comments
Open
5 tasks

feature: process manager #1

kamilsk opened this issue Jan 7, 2020 · 0 comments
Assignees

Comments

@kamilsk
Copy link
Member

kamilsk commented Jan 7, 2020

Motivation: using built-in package os/exec is not convenient. Need a top-level abstraction allows to

  • watch and manage all processes
  • use autocompletion to pass args and flags

See https://github.com/kamilsk/egg/blob/01f00b79330523b3f425bbbf8a61523feaafc426/internal/cmd/deps/list.go#L13-L67.

Draft

cancel, err := process.Run("id", cmd)
if err != nil { ... }
defer cancel()


process.Find("id").Signal(os.Interrupt) // == .Stop()

cmd := process.Go().Mod().Tidy(args...).WithParam("key", "value").WithFlag("edit")

To do

@kamilsk kamilsk self-assigned this Jan 7, 2020
@kamilsk kamilsk added the help wanted Extra attention is needed label Mar 11, 2020
@kamilsk kamilsk removed the help wanted Extra attention is needed label Oct 31, 2021
@kamilsk kamilsk moved this to Backlog in 🏗 Platform May 11, 2022
@kamilsk kamilsk changed the title process manager feature: process manager May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant