gopm3

command module
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 13 Imported by: 0

README

gopm3

Dumb Process Manager

Config

Currently hardcoded to look for a JSON file, gopm3.config.json in the current directory.

Config Format

[
    {
        "name": "some name",       // The label to reference the command by
        "command": "ls",           // The command to run
        "args": ["-a", "-b"],      // The arguments to pass to the command
        "restart_delay": 1000,     // The delay (in milliseconds) before each restarts
        "no_process_group": false, // (Optional) Controls whether gopm3 should kill the child processes of the command as well
    },
    {
        ...
    },
    ...
]

Usage

  • Arrow keys to navigate between processes
  • Mouse clicks to focus the different panes
  • <Space> to restart highlighted process
  • m to toggle mouse mode (default: on, text is only highlightable in non-mouse mode)
  • ESC or Ctrl + c to exit
  • All logs (both stdout/stderr) are replicated to ~/.gopm3/<process-name>.log

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL