Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartPager ¶ added in v1.9.1
StartPager wraps w with a pager subprocess when all of the following hold:
- paging hasn't been disabled by --no-pager,
- w is a TTY (so the user is actually viewing the output interactively),
- PISTA_PAGER is set to a non-empty command line.
Otherwise it returns w unchanged with a no-op close. The returned close function tears down the pager and waits for it to exit, so callers should always invoke it (typically via defer).
Types ¶
type Apply ¶
type Apply struct {
pistachio.ApplyOptions
}
type Dump ¶
type Dump struct {
pistachio.DumpOptions
}
Click to show internal directories.
Click to hide internal directories.