Go-pty: Procfile process manager with PTY support

mendelowski.com · pchm · 3 days ago · view on HN · security
0 net
Tags
go-pty __ _ ___ _ __ | |_ _ _ / _` |/ _ \ _____| '_ \| __| | | | | (_| | (_) |_____| |_) | |_| |_| | \__, |\___/ | .__/ \__|\__, | |___/ |_| |___/ A process manager that runs commands from a Procfile, each in its own pseudoterminal (PTY). Every process gets a real terminal, so you can attach to any running process and use interactive debuggers and REPLs directly. Press ctrl+] to attach to a process for a full interactive terminal session. Press it again to detach and return to the combined output view. GitHub Download Demo Quick start # Install (macOS) brew tap lcmen/extra brew install go-pty # Install (Linux) ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') URL=https://github.com/lcmen/go-pty/releases/latest/download curl -fsSL $URL/go-pty-linux-$ARCH -o ~/.local/bin/go-pty chmod +x ~/.local/bin/go-pty # Run go-pty -f Procfile Keyboard shortcuts Mode Key Action Normal ctrl+] Open process selection Normal ctrl+c Shut down and exit Dialog Up/Down Navigate list Dialog Enter Attach to process Dialog Esc Cancel Attached ctrl+] Detach