Skip to content

Releases: Guitarbum722/align

Fix build shell script and Makefile

12 Sep 16:21
c81c6ab
Compare
Choose a tag to compare
  • Removes redundant build in build.sh
  • Fix make build and make install
  • Change directory before creating tarball

Minor bug fixes

09 Feb 03:03
a2c6f9c
Compare
Choose a tag to compare

Fixes a couple of minor bugs that transposed and truncated fields in certain cases.

v1.1.1

06 Sep 17:07
1c5c9d2
Compare
Choose a tag to compare

Fixes a bug where the processed lines were not actually being delimited with newlines on output.

Reduce allocations

22 Nov 02:50
3cf3157
Compare
Choose a tag to compare

Recent changes have greatly reduced the allocations used by the library when padding each field of the flat data input.

Minor updates and cleanup

15 Nov 21:50
c288c26
Compare
Choose a tag to compare
  • Removes an unused interface and commentary referencing it.
  • Removes some extraneous logic when defaults were already defined.
  • Some slight renaming and unexporting of underlying reader/writer which didn't need to be exported.

It's been 2 years. Going with a v1.0.0.

Configurable padding option

10 Sep 00:07
Compare
Choose a tag to compare
  • Add a Pad count to PaddingOpts in order to choose the amount of whitespace around the separator.
  • Create the -p flag to the CLI for this padding option

Convert to library

06 Sep 02:26
Compare
Choose a tag to compare
  • Converted package to a lib and exposed the appropriate methods to create the public API thanks to @briandowns !

  • The CLI now lives in a subdirectory /cmd

Options for justification by column number

01 Sep 03:45
Compare
Choose a tag to compare

Provides a new flag, -i which allows the user to specify the justification for particular columns.

  • 1 or more columns can have such an override specified
  • The -i flag is NOT required

Example (default justification of left with column overrides for field 1 and 4):
cat file.csv | align -i 1:right,4:center

  • Minor updates to documentation

v0.2 - Additional support for international characters

22 Aug 03:19
Compare
Choose a tag to compare
  • #57 revealed a bug for proper padding with certain international characters
  • vendored a dependency which fixes the count of the string width properly

v0.1 - Initial Release

21 Aug 02:57
Compare
Choose a tag to compare

Features

  • align text by a specified delimiter / separator
  • specify a different output delimiter
  • specify an input file or pipe to stdin (default)
  • specify an output file or write to stdout (default)
  • filter the fields outputted by column number
  • left, center, or right justification
  • escape the delimiter in a text field with a text qualifier option