Package Usage: go: github.com/posener/script
Package script provides helper functions to write scripts.
Inspired by https://github.com/bitfield/script, with some improvements:
* Output between streamed commands is a stream and not loaded to memory.
* Better representation and handling of errors.
* Proper incocation, usage and handling of stderr of custom commands.
The script chain is represented by a
(`Stream`) https://godoc.org/github.com/posener/script#Stream object. While each command in the
stream is abstracted by the (`Command`) https://godoc.org/github.com/posener/script#Command
struct. This library provides basic functionality, but can be extended freely.
A simple "hello world" example that creats a stream and pipe it to the stdout.
An example that shows how to iterate scanned lines.
An example that shows how to create custom commands using the `Through` method with a `PipeFn`
function.
12 versions
Latest release: almost 2 years ago
44 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/posener/script
Dependent Repos 1
