llr

command module
v0.0.0-...-2cba167 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: ISC Imports: 11 Imported by: 0

README

Check Update

llr - Line-length Limiter

The llr program reads a file or standard input, then it limits the length of the lines printed to fit to your terminals width by truncating the lines.

llr [flags] [filename]

The following flags are available:

  • --width or -w: specifies the maximum width of the output. If not specified, the default is the width of the terminal.
  • --debug or -d: enables debug output.

It also accepts an argument filename to read from, if this filename isn't specified or specified as -, it will read from standard input.

Example usages

For example, to read the contents of a file named input.txt and print the lines to standard output with a maximum width of 50 characters, you can use the following command:

cat input.txt | llr -w 50

This may be more useful in programs that produce large and wide outputs where you don't always care about the end of the lines, such example may in some cases be output from =kubectl=.

Building

You can build the llr program by navigating to the project directory and running the go build command:

go build -o llr

Running tests

You can run the tests for the llr program by navigating to the project directory and running the go test command:

go test

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