Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Add "--align" flag to table command.#209

Open
alex-ozdemir wants to merge 1 commit intoBurntSushi:masterfrom
alex-ozdemir:table-alignment
Open

Add "--align" flag to table command.#209
alex-ozdemir wants to merge 1 commit intoBurntSushi:masterfrom
alex-ozdemir:table-alignment

Conversation

@alex-ozdemir
Copy link

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.

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 BurntSushi#165.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Right-alignment

1 participant