max-mapper / monu

menubar process monitor mac app [ALPHA]
https://github.com/maxogden/monu/releases
BSD 2-Clause "Simplified" License
1.11k stars 74 forks source link

Extend process execution definition #20

Open elmariofredo opened 9 years ago

elmariofredo commented 9 years ago

Currently there is simple format to add new process

  "processes": {
    "web-1": "cd /some/dir;sudo http-server . -p 8081",
  }

This is fine and it's good idea to keep definition simple, but to have config future proof, it would be great if monu can support also object as process definition.

  "processes": {
    "web-1": {
      "command": "http-server . -p 8081",
      "cwd": "/some/dir",
      "sudo": true
    }
  }

I took exec options as inspiration.

I think this will open more possibilities for adding new processes using interactive form rather than editing config file, also it will make config file much more readable.

What do you think?