Hello everyone,
I'm excited to share the release of
Proc—a cross-platform subprocess library for Ring!
Proc makes it easy to spawn child processes, redirect I/O, and execute shell commands on Windows, Linux, macOS and FreeBSD. It features both a simple functional API and a clean OOP interface.
Key Features:- Cross-Platform: Consistent behavior across all major OSs.
- Full I/O Control: easily read/write to stdin, stdout, and stderr.
- Flexible API: Use high-level helpers like `proc_shell()` or the robust `Process` class.
Code Example:
load "proc.ring"
# 1. Simple Shell Command
? proc_shell("echo Hello World!")[2]
# 2. OOP Interface
shell = new Shell
if shell.success("git status")
? shell.capture("git log -1")
ok
Installation:
ringpm install proc from ysdragonLearn More:Contributions and feedback are welcome!Best regards,
Youssef