Skip to content

Commit

Permalink
rename q to chalk-app
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiu committed Mar 19, 2020
1 parent 48d02c4 commit 0aa9d59
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 48 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ let package = Package(
name: "Chalk",
products: [
.library(name: "Chalk", targets: ["Chalk"]),
.executable(name: "Q", targets: ["Q"]),
.executable(name: "chalk-app", targets: ["chalk-app"]),
],
dependencies: [
.package(url: "https://github.com/luoxiu/Rainbow", from: "0.0.1"),
],
targets: [
.target(name: "Chalk", dependencies: ["Rainbow"]),
.target(name: "Q", dependencies: ["Chalk"]),
.target(name: "chalk-app", dependencies: ["Chalk"]),
.testTarget(name: "ChalkTests", dependencies: ["Chalk"]),
]
)
46 changes: 0 additions & 46 deletions Sources/Q/main.swift

This file was deleted.

27 changes: 27 additions & 0 deletions Sources/chalk-app/main.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// File.swift
//
//
// Created by jinxiangqiu on 15/3/2020.
//

import Foundation
import Chalk

let name = """
______ __ __ ___ __ __ ___
/ || | | | / \\ | | | |/ /
| ,----'| |__| | / ^ \\ | | | ' /
| | | __ | / /_\\ \\ | | | <
| `----.| | | | / _____ \\ | `----.| . \\
\\______||__| |__| /__/ \\__\\ |_______||__|\\__\\
"""

print(
name.map {
ck.fg(.random).on(String($0))
}
.reduce(TerminalString()) {
$0 + $1
}
)

0 comments on commit 0aa9d59

Please sign in to comment.