scottrhoyt / swiftytexttable Goto Github PK
View Code? Open in Web Editor NEWA lightweight library for generating text tables.
License: MIT License
A lightweight library for generating text tables.
License: MIT License
I found that multi-byte unicode characters are counted incorrectly resulting in wrong column widths:
+----------------------------------------+-------------+-----------------+
| FILENAME | STATUS | TIMESTAMP |
+----------------------------------------+-------------+-----------------+
| 234212640FW20_0716_C_FRONT_WHL_096.jpg | ❇️ DELIVERED | 17.06.20, 01:57 |
| 230257732FW20_0013_C_FRONT_BLL_019.jpg | ❇️ DELIVERED | 22.06.20, 19:54 |
| 230306780BLAA_038.jpg | ❇️ DELIVERED | 16.06.20, 12:00 |
| 230306780FW20_0290_C_FRONT_BKER.jpg | ❇️ DELIVERED | 17.06.20, 01:58 |
+----------------------------------------+-------------+-----------------+
I'd be cool to also add CocoaPods support. I done this implementation myself last month for my library. Just follow this post and this checklist.
All the values are left aligned. Does it support right alignment?
Thanks!
I'm trying to use SwiftyTextTable using Carthage on macOS Mojave, with Xcode 10 that uses Swift 4.2, and I'm getting the following error:
*** Cloning SwiftyTextTable
*** Checking out SwiftyTextTable at "0.8.2"
*** xcodebuild output can be found in /var/folders/9t/kjmwgng518vcjnczl_0j9h780000gn/T/carthage-xcodebuild.R3VNUw.log
*** Downloading SwiftyTextTable.framework binary at "0.8.2"
*** Skipped installing SwiftyTextTable.framework binary due to the error:
"Incompatible Swift version - framework was built with 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2) and the local version is 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)."
Falling back to building from the source
*** Building scheme "SwiftyTextTable" in SwiftyTextTable.xcodeproj
Our OWASP third party scan tool reported 4 published CVE's in SwiftyTextTable library version 0.9.0 which were listed below.
CVE-2015-9251
CVE-2019-11358
CVE-2020-11022
CVE-2020-11023
Is there a plan to resolve this and If there is a plan when we can expect the new version of library.
Just noticed CI builds failing on Travis CI because of Carthage now requiring Xcode 9.4.
Carthage installed. Upgrading if neccessary.
carthage (0.25.0) < 0.31.1
==> Upgrading 1 outdated package:
carthage 0.25.0 -> 0.31.1
carthage: A full installation of Xcode.app 9.4 is required to compile this software.
Installing just the Command Line Tools is not sufficient.
Xcode 9.4 cannot be installed on macOS 10.12.
You must upgrade your version of macOS.
Error: carthage: An unsatisfied requirement failed this build.
The command "./scripts/upstall-carthage.sh" failed and exited with 1 during .
I believe this would be fixed by requiring Xcode 9.4 on the .travis.yml
file. @scottrhoyt let me know your thoughts, I can submit a PR for that.
Hi Team,
Is there any support available for this library.Any upcoming releases planned?
Hi, just stumbled across SwiftyTextTable and wanted to use it for a project. Thanks for building it!
Unfortunately it seems SwiftTextTable is unable to calculate the correct size for a column when trying to apply additional information to the strings via something like onevcat/Rainbow.
I'm getting this for example when applying the color red to the string foo
:
+--------------+-----+-----+
| foo | bar | baz |
+--------------+-----+-----+
| 1 | 2 | 3 |
| 11 | | 33 |
| 111 | 222 | 333 |
+--------------+-----+-----+
I'm guessing it's because of this, seeing how color information in the terminal is represented through escape sequences that are counted as additional length in this case. Is there any way one could work around this?
For long string need to add multiline row support
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.