Skip to content

v2.1.0

Choose a tag to compare

@nikolainobadi nikolainobadi released this 21 Nov 21:14
· 20 commits to main since this release
632eb56

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 output
  • runAndPrint(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 only

Full Changelog: https://github.com/nikolainobadi/NnShellKit/blob/main/CHANGELOG.md