A library to display an ActivityIndicator for CLI.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
Tests
.gitignore
LICENSE
Makefile
Package.resolved
Package.swift
ProgressSpinnerKit.gif
README.md

README.md

Swift 4.1 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 Package Manager

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

import PackageDescription

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

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

Usege

import Basic
import ProgressSpinnerKit

let spinner = createProgressSpinner(forStream: Basic.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.