Swiftpack.co - yanagiba/bocho as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by yanagiba.
yanagiba/bocho v0.18.10
A set of utility libraries with common code that supports Yanagiba modules
⭐️ 1
🕓 1 week ago
.package(url: "https://github.com/yanagiba/bocho.git", from: "v0.18.10")

Bocho

GitHub Actions Status codecov Swift 5.5 Swift Package Manager Platforms License

Bocho is a set of utility libraries with common code that supports Yanagiba modules.

Bocho is part of Yanagiba Project. Yanagiba umbrella project is a toolchain of compiler modules, libraries, and utilities, written in Swift and for Swift.


Requirements

Usage

Embed Into Your Project

Add the bocho dependency to Package.swift:

// swift-tools-version:5.5

import PackageDescription

let package = Package(
  name: "MyPackage",
  dependencies: [
    .package(url: "https://github.com/yanagiba/bocho.git", from: "0.18.10")
  ],
  targets: [
    .target(name: "MyTarget", dependencies: ["Bocho"]),
  ],
  swiftLanguageVersions: [.v5]
)

Use Bocho in Your Code

import Bocho

let ttyColoredString = "foobar".colored(with: .red)

Browse source code for other applications.

Development

Build & Run

Building the entire project can be done by simply calling:

make

This is equivalent to

swift build

Running Tests

Compile and run the entire tests by:

make test

License

Bocho is available under the Apache License 2.0. See the LICENSE file for more info.

GitHub

link
Stars: 1
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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