An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

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.

Ecosystem
proxy.golang.org
Latest Release
v1.2.0
over 2 years ago
Versions
12
Dependent Packages
44
Dependent Repos
123
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/posener/script
spec
License Apache-2.0
Namespace github.com/posener
First Release over 6 years ago
Last Synced 4 days ago
Keywords
go golang script util
Repository
Stars 7 on GitHub
Forks 4 on GitHub
Docker Dependents 573
Docker Downloads 95,388,094
Rankings on proxy.golang.org
Overall Top 4.3%
Dependent packages Top 0.6%
Dependent repos Top 0.6%
Forks Top 8.9%
Docker downloads Top 0.3%