https://github.com/ionos-cloud/libtbl
A library to print table on terminal in different formats: JSON, XML, CSV and TERMINAL.
https://github.com/ionos-cloud/libtbl
Last synced: 18 days ago
JSON representation
A library to print table on terminal in different formats: JSON, XML, CSV and TERMINAL.
- Host: GitHub
- URL: https://github.com/ionos-cloud/libtbl
- Owner: ionos-cloud
- Created: 2023-03-01T11:56:27.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T09:11:37.000Z (about 2 years ago)
- Last Synced: 2025-03-24T13:11:26.023Z (about 1 month ago)
- Language: C
- Size: 9.77 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## libtbl
Libtbl supports printing tables on terminal if following formats:
**JSON, XML, CSV, TERMINAL**## Building and Installing libtbl
Libtbl use Makefile.
1. `make`
2. `make install`## Testing
1. **make test**
It invokes Regression Testing.
It compares ouput with expected output from libtlbl_example.
2. **make libtbl_unittests**
Unit test framework. You must have gtest installed at your local system.## Example file
Run 'make test'. It will compile libtbl_example,that demonstrates how the
output will look for supported formats.
`./libtbl_example help` to see all options.## Additional notes
- Removing or adding particular fields to the table can be done using table_extend_columns().
If string (field name) passed to the function begins with '-' field will be removed, if it
begins with '+' field will be added.## Contributors
Grzegorz Prajsner
Danil Kipnis
Supriti Singh
Florian-Ewald Mueller
Moritz Wagner
Vaishali Thakkar