Open before closed.
The future is decentralized.
Terminal colors using Swift 5’s string interpolation extensions.
License: The Unlicense
Open before closed.
The future is decentralized.
I'm getting an Ambiguous reference to member 'appendInterpolation'
compile-time error when trying to use Chalk with either a variable or a string literal.
import Chalk
print("\("Hello, world!", style: .bold)")
^ Ambiguous reference to member 'appendInterpolation'
let greeting = "Hello, world!"
print("\(greeting, style: .bold)")
^ Ambiguous reference to member 'appendInterpolation'
This happens with any Chalk parameters used in any string interpolation in my project. I'm experiencing this issue in a complex project, but have also verified it to be an issue in a brand new blank project generated with swift package init --type executable
.
Using Xcode version 10.2 (10E125) and Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3) with the package dependency .package(url: "https://github.com/mxcl/Chalk", from: "0.3.0")
.
I've been previously using a competitor's project that detects the terminal type and can transparently turn off color and style coding when it encounters a non-interactive one (e.g., file redirection).
Since I like the Chalk API much better, it would be cool, if it could do something equivalent.
First off, thanks for this great package.
What do you think about including named colors for the 8-bit mode, e.g. from here? I know they're not quite standardized, but it would be much more helpful than just using arbitrary constants.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.