Comments (4)
One of the big issues with this is Styler
does not know what ConsoleProtocol
it came from. Different consoles will have different methods for styling text. That's part of the reason for the difficult syntax.
It would need to be something like console.style("blah", .blue)
from console-kit.
or a let styler = Styler(formatter:customformatter)
from console-kit.
console.plain("Plain text").styled("blue text").blue.styled("bold text").bold.bgGreen.white.styled("no text").hidden.bgBlue.white.info()
its a builder entry points .plain
and .styled
and the builder can closed with:
xxx.info()
xxx.error()
xxx.warning()
or with only one entry point and when no modifier is attached, then this text
is not styled
console.text("Plain text").text("blue text").blue.text("bold text").bold.bgGreen.white.text("no text").hidden.bgBlue.white.info()
from console-kit.
Closing due to inactivity. Please feel free to reopen.
from console-kit.
Related Issues (20)
- Create a CLI without a Vapor Application HOT 1
- dynamic command HOT 2
- property wrappers
- Determinate help output ordering HOT 3
- unknown command help
- Property Wrappers look not to work
- Add readme. HOT 1
- Logging improvements. HOT 5
- Corrupt LoadingBar? HOT 1
- Persisting prompts and options HOT 1
- Not compiling for other platforms HOT 3
- Investigate Flaky Tests
- async overload for `Command.run(using context: CommandContext, signature: Signature)`
- Latest version fails to build on Xcode 13.4 HOT 1
- Default values HOT 6
- Use ArgumentParser instead of custom solution HOT 2
- AsyncCommand integration with Vapor.Application HOT 2
- Crash when using Secure Input in Docker container for custom Vapor Command HOT 8
- Console output generated via Vapor request loggers lagging in Linux deployment
- Concurrency warnings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from console-kit.