Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobdufault/go-reflow
Simple command line utility to reflow comments
https://github.com/jacobdufault/go-reflow
Last synced: 7 days ago
JSON representation
Simple command line utility to reflow comments
- Host: GitHub
- URL: https://github.com/jacobdufault/go-reflow
- Owner: jacobdufault
- License: apache-2.0
- Created: 2018-04-14T07:02:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T15:54:01.000Z (over 6 years ago)
- Last Synced: 2024-06-20T17:03:47.021Z (5 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-reflow
A simple utility to reformat comments. Accepts input on stdin, writes output
to stdout.# Install
```sh
$ go install github.com/jacobdufault/go-reflow
$ go-reflow --help
```# Usage
```
Usage of go-reflow:
-tab-size int
Size of a tab (\t) character (default 2)
-width int
Width to reflow text to (default 80)
```# Example
```
$ echo " # foo bar baz a baaa barara" | go-reflow -width 20
# foo bar baz a
# baaa barara
```