MCPcopy
hub / github.com/mattn/goreman

github.com/mattn/goreman @v0.3.17 sqlite

repository ↗ · DeepWiki ↗ · release v0.3.17 ↗
54 symbols 127 edges 9 files 27 documented · 50%
README

Goreman

Clone of foreman written in golang.

https://github.com/ddollar/foreman

Getting Started

go install github.com/mattn/goreman@latest

Usage

goreman start

Will start all commands defined in the Procfile and display their outputs. Any signals are forwarded to each process.

Example

See _example directory

License

MIT

Design

The main goroutine loads Procfile and starts each command in the file. Afterwards, it is driven by the following two kinds of events, and then take proper action against the managed processes.

  1. It receives a signal, which could be one of SIGINT, SIGTERM, and SIGHUP;
  2. It receives an RPC call, which is triggered by the command goreman run COMMAND [PROCESS...].

design

Authors

Yasuhiro Matsumoto (a.k.a mattn)

Core symbols most depended-on inside this repo

stopProc
called by 5
proc.go
usage
called by 5
main.go
findProc
called by 5
main.go
writeBuffers
called by 3
log.go
startProc
called by 3
proc.go
stopProcs
called by 3
proc.go
readProcfile
called by 3
main.go
notifyCh
called by 2
proc_posix.go

Shape

Function 36
Method 12
Struct 5
TypeAlias 1

Languages

Go100%

Modules by API surface

main.go13 symbols
rpc.go11 symbols
log.go8 symbols
goreman_test.go7 symbols
proc.go6 symbols
proc_windows.go3 symbols
proc_posix.go3 symbols
export.go2 symbols
_example/web.go1 symbols

Dependencies from manifests, versioned

github.com/joho/godotenvv1.5.1 · 1×
github.com/mattn/go-colorablev0.1.14 · 1×
github.com/mattn/go-isattyv0.0.20 · 1×
golang.org/x/sysv0.41.0 · 1×
gopkg.in/yaml.v3v3.0.1 · 1×

For agents

$ claude mcp add goreman \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact