tabless

command module
v0.0.0-...-c5416b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

README

tabless

Build Status

A command line utility like less but for displaying tabular data graphically. Like less, tabless does not need to read the entire file (or pipe) before it displays it, so it's quick to use when working on the command line.

This uses tcell and tview to handle the drawing.

Installation

go get github.com/georgek/tabless

Example

# read from file
tabless filename
# read from pipe
table_generator | tabless

Usage

usage: tabless [flags] [filename]

flags:
  -b    display graphical borders (default true)
  -d string
        column delimiter to use (default "\t")

Utilities

Use the included generate-massive-table.py to generate a lot of data for testing. Without a command line argument it generates a huge table so be careful.

# generate 10000 rows
python utils/generate-massive-table.py -r 10000 | tabless
# simulate slow pipe (10 rows per second)
python utils/generate-massive-table.py -s 0.1 -r 10000 | tabless

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL