acol

command module
v0.0.0-...-95e0958 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

acol

Build Status Go Report Card MIT License

Styles standard input in a tabular format like ls.

Installation

Install Go and run this command:

go get github.com/snsinfu/acol

Now acol is placed in GOPATH/bin (which is ~/go/bin by default).

Testing

Move to the repository root (or ~/go/github.com/snsinfu/acol) and

go test ./...

Usage

acol reads list of lines and formats the list into multiple columns. Like this:

% head -n 30 /usr/share/dict/words | acol
A      aam       Aaronic    Ab       abaca        abaciscus
a      Aani      Aaronical  aba      abacate      abacist
aa     aardvark  Aaronite   Ababdeh  abacay       aback
aal    aardwolf  Aaronitic  Ababua   abacinate    abactinal
aalii  Aaron     Aaru       abac     abacination  abactinally

Input may contain spaces and/or escape sequences (colored text):

Screenshot

Options
-h, --help   display help information
-r           use row-major ordering
-s[=2]       space between columns

Alternatives

The column command works similarly to acol. However, it does not handle colored text correctly. Also, the output of column is less packed than that of acol because of uniform column width.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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