Repository navigation
v2.1.0
NnShellKit v2.1.0 Release Notes
Released: November 21, 2025
What's New
Real-Time Output Streaming
Added new runAndPrint methods to the Shell protocol for executing commands with live output streaming:
runAndPrint(_:args:)- Execute programs with real-time stdout/stderr outputrunAndPrint(bash:)- Execute bash commands with real-time stdout/stderr output
These methods are perfect for long-running commands, build scripts, or any operation where you want to see progress as it happens.
Example:
let shell = NnShell()
try shell.runAndPrint("swift", args: ["build"])
try shell.runAndPrint(bash: "git status && git log --oneline -5")Improved Testing Architecture
MockShell and MockCommand have been moved to a separate NnShellTesting library for cleaner dependency separation. Import only what you need:
import NnShellKit // Production code
import NnShellTesting // Test code onlyFull Changelog: https://github.com/nikolainobadi/NnShellKit/blob/main/CHANGELOG.md