Skip to content
text alignment in terminal
Go Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows indent retry Oct 28, 2019
cmd/justify
.gitignore ignore dist Oct 27, 2019
.goreleaser.yml
LICENSE Initial commit Oct 27, 2019
README.md
center.go gofmt Oct 27, 2019
center_test.go add test case for TestCenter Oct 28, 2019
go.mod
go.sum windows support Oct 27, 2019

README.md

justify

text alignment in terminal

install

go get github.com/utgwkk/justify/cmd/justify

Usage

$ justify < input
# or
$ command | justify

Options

flag description
-aa Consider input as an ascii art

Examples

% cat input
これが そうか
この掌にあるものが

心か

% justify < input
                                                  これが そうか
                                               この掌にあるものが

                                                      心か

% cowsay Hello | ~/go/bin/justify -aa
                                           _______
                                          < Hello >
                                           -------
                                                  \   ^__^
                                                   \  (oo)\_______
                                                      (__)\       )\/\
                                                          ||----w |
                                                          ||     ||

You can’t perform that action at this time.