xsv icon indicating copy to clipboard operation
xsv copied to clipboard

Add "--align" flag to table command.

Open alex-ozdemir opened this issue 5 years ago • 0 comments

This flag allows the user to specify how data should be aligned within columns. The options are:

  • left
  • right
  • center

This alignment is applied to all columns.

Per the tabwriter crate, center alignment breaks ties in favor of being closer to the left. Thus if "hi" appears in a column of width 5, it will be printed as " hi ".

resolves #165.

alex-ozdemir avatar Feb 21 '20 03:02 alex-ozdemir