-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from dominicegginton:release/1.1.4
release/1.1.4
- Loading branch information
Showing
6 changed files
with
60 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Testing | ||
name: Unit Testing | ||
|
||
on: [push, pull_request] | ||
on: [push] | ||
|
||
jobs: | ||
test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// swift-tools-version:5.1 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "example", | ||
dependencies: [ | ||
// Dependencies declare other packages that this package depends on. | ||
// .package(url: /* package url */, from: "1.0.0"), | ||
.package(url: "../", from: "1.1.4") | ||
], | ||
targets: [ | ||
// Targets are the basic building blocks of a package. A target can define a module or a test suite. | ||
// Targets can depend on other targets in this package, and on products in packages which this package depends on. | ||
.target( | ||
name: "example", | ||
dependencies: ["Spinner"]) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Swift CLI Spinners - Example Project | ||
|
||
> A simple example project for the [Swift CLI Spinner](https://github.com/dominicegginton/spinner) project | ||
## Getting Started | ||
Install by cloning the [Swift CLI Spinners Repo](https://github.com/dominicegginton/spinner): | ||
``` shell | ||
git clone https://github.com/dominicegginton/Spinner.git | ||
``` | ||
Next navigate to the example directory | ||
``` shell | ||
cd Spinner/example | ||
``` | ||
Feel free to take a look at [main.swift](https://github.com/dominicegginton/Spinner/blob/master/example/Sources/example.main.swift) 👀, to run build and run the example simply: | ||
``` shell | ||
swift build | ||
swift run | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Foundation | ||
import Spinner | ||
import Rainbow | ||
|
||
let mySpinner = Spinner(.dots, "My Spinner", color: .blue) | ||
mySpinner.start() | ||
sleep(2) | ||
mySpinner.stop() |