Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mdw-go/valign

Simple multi-line vertical alignment tool.
https://github.com/mdw-go/valign

Last synced: 14 days ago
JSON representation

Simple multi-line vertical alignment tool.

Awesome Lists containing this project

README

        

# valign

Vertical alignment tool.

Given a file called query.sql with the following contents:

```sql
SELECT 'a' FROM table;
SELECT 'hello' FROM table;
SELECT 'goodbye' FROM table;
SELECT 'really-super-long-name' FROM table;
```

When processed with `valign`:

```
$ cat query.sql | valign -match "FROM"
SELECT 'a' FROM table;
SELECT 'hello' FROM table;
SELECT 'goodbye' FROM table;
SELECT 'really-super-long-name' FROM table;
```