Swiftpack.co - erica/Swift-Cmdline-Utility as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by erica.
erica/Swift-Cmdline-Utility 0.0.9
Support utilities for command line development
⭐️ 4
🕓 2 years ago
macOS
.package(url: "https://github.com/erica/Swift-Cmdline-Utility.git", from: "0.0.9")

CmdlineUtility

Support code for developing command line utilities.

Contents

Key Entry

Raw mode key-press detection

Output Stream

A wrapper to convert an UnsafeMutablePointer<FILE> to a TextOutputStream

Transformative Output Stream

TextOutputStreams that apply a closure to transform their contents before printing.

Installation

File > Swift Packages > Add Package Dependency…:

https://github.com/erica/Swift-Cmdline-Utility

SwiftPM:

dependencies: [
    .package(url: "https://github.com/erica/Swift-Cmdline-Utility", from: "0.0.1"),
],
targets: [
    .target(
        name: "TARGET-NAME",
        dependencies: [
           .product(name: "CmdlineUtility"),
        ],
    ),
],

GitHub

link
Stars: 4
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics