Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mdw-go/valign
- Owner: mdw-go
- License: mit
- Created: 2023-04-14T19:47:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-19T16:01:00.000Z (30 days ago)
- Last Synced: 2024-10-20T14:53:50.445Z (29 days ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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;
```