Skip to content

yutailang0119/ProgressSpinnerKit

Repository files navigation

Swift 5.7 Swift Package Manager Lincense

A library to display an ActivityIndicator for CLI.
Motivated by

A Work In Progress

ProgressSpinnerKit is still in active development.

Dome

Installation

// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
  name: "ExamplePackage",
  dependencies: [
    .package(url: "https://github.com/yutailang0119/ProgressSpinnerKit", from: "0.5.0"),
  ],
  targets: [
    .target(name: "ExampleTarget", dependencies: ["ProgressSpinnerKit"]),
  ]
)

https://github.com/apple/swift-package-manager

Usage

import TSCBasic
import ProgressSpinnerKit

let spinner = progressSpinner(for: TSCBasic.stdoutStream, header: " Loading:")
spinner.start()
// Something on the main thread.
spinner.stop()

Author

Yutaro Muta

License

ProgressSpinnerKit is available under the MIT license. See the LICENSE file for more info.
This software includes the work that is distributed in the Apache License 2.0.