Documentation
¶
Overview ¶
Package alias provides unprefixed names for nl command flags.
import nl "github.com/gloo-foo/cmd-nl/alias"
nl.Nl(nl.BodyNonEmpty, nl.Sep(": "))
Index ¶
Constants ¶
View Source
const ( BodyAll = command.NlBodyAll // number all lines (default) BodyNonEmpty = command.NlBodyNonEmpty // number non-empty lines only BodyNone = command.NlBodyNone // number no lines )
-b flag: which lines to number.
View Source
const ( FormatLN = command.NlFormatLN // left justified, no leading zeros FormatRN = command.NlFormatRN // right justified, no leading zeros (default) FormatRZ = command.NlFormatRZ // right justified, leading zeros )
-n flag: line-number format.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Increment ¶
type Increment = command.NlIncrement
Increment is the -i line-number-increment flag.
Click to show internal directories.
Click to hide internal directories.