mprocs icon indicating copy to clipboard operation
mprocs copied to clipboard

Feature Request: Process Groups

Open wyrmisis opened this issue 1 year ago • 1 comments

One of my main use cases for mprocs is running a dev environment for an app with multiple microservices and single-run scripts. Currently, I organize my processes by prefixing them (M for microservices, TOOL for scripts, etc).

I think it would be helpful to have subheadings under the process list under which processes with a matching group property in the config file are displayed. Something like...

┌─Processes────────────┐ ┌─Terminal───────────────────────┐
│Frontend              │ │                                │
│Backend               │ │                                │
│                      │ │                                │
│-- Microservices --   │ │                                │
│Microservice A     UP │ │                                │
│Microservice B     UP │ │                                │
│Microservice C     UP │ │                                │
│                      │ │                                │
│-- Scripts --         │ │                                │
│Some Script      DOWN │ │                                │
│Another Script   DOWN │ │                                │
│                      │ │                                │
│-- Applications --    │ │                                │
│Application A      UP │ │                                │
│Another App      DOWN │ │                                │
│                      │ │                                │
│                      │ │                                │
│                      │ │                                │
│                      │ │                                │
│                      │ │                                │
│                      │ │                                │
│                      │ │                                │
└──────────────────────┘ └────────────────────────────────┘

wyrmisis avatar Mar 04 '24 15:03 wyrmisis

I'm thinking it could look something like this in config

proc_groups:
  apps:
    label: '-- Applications --'
  services:
    label: '-- Microservices --'
  scripts:
    label: '-- Scripts --'
procs:
  'Microservice A':
    groups: ['services']

legobeat avatar Jun 04 '24 22:06 legobeat