align

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2021 License: MIT Imports: 9 Imported by: 0

README

:toc:
:sectnums:

= align

align is text align command.
align [left|center|right]-justify text files.
or does stdin too.

image:https://github.com/jiro4989/align/workflows/test/badge.svg[test]
image:https://codecov.io/gh/jiro4989/align/branch/master/graph/badge.svg[codecov, link="https://codecov.io/gh/jiro4989/align"]

== development

 go version go1.11 linux/amd64

== Usage examples

[source,bash]
align left README.adoc | head | sed -r 's/$/</g'

[quote]
----
:toc:                                                                     <
:sectnums:                                                                <
                                                                          <
= align                                                                   <
                                                                          <
align provides text align right or center or left command.                <
                                                                          <
== development                                                            <
                                                                          <
 go version go1.11 linux/amd64                                            <
----

[source,bash]
align center -n 80 README.adoc | head | sed -r 's/$/</g'

[quote]
----
                                     :toc:                                      <
                                   :sectnums:                                   <
                                                                                <
                                    = align                                     <
                                                                                <
           align provides text align right or center or left command.           <
                                                                                <
                                 == development                                 <
                                                                                <
                          go version go1.11 linux/amd64                         <
----

[source,bash]
align right README.adoc | head

[quote]
----
                                                                           :toc:
                                                                      :sectnums:
                                                                                
                                                                         = align
                                                                                
                      align provides text align right or center or left command.
                                                                                
                                                                  == development
                                                                                
                                                   go version go1.11 linux/amd64
----

== Install

[source,bash]
go get -u github.com/jiro4989/align

or

Download binary from https://github.com/jiro4989/align/releases[Releases].

== Help

[source]
----
align is text align command.
align [left|center|right]-justify text files.
or does stdin too.

Repository: https://github.com/jiro4989/align
    Author: jiro4989

Usage:
  align [command]

Examples:
align right README.md

Available Commands:
  center          Align center command from file or stdin
  help            Help about any command
  left            Align left command from file or stdin
  right           Align right command from file or stdin
  vertical-bottom Align vertical bottom command from file or stdin
  vertical-center Align vertical center command from file or stdin
  vertical-top    Align vertical top command from file or stdin

Flags:
  -h, --help      help for align
      --version   version for align

Use "align [command] --help" for more information about a command.
----

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL