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

github.com/mdm-code/duct

Package duct provides the internals for the duct command-line program wrapping code formatters that do not read from standard input data stream, and instead they take file names as command arguments. The package offers components that allow such commands to be wrapped inside of a standard Unix stdin to stdout filter-like data flow. The general idea is that input data read from standard input is written to an intermediate temporary file. The name of the file gets passed to as one of the positional arguments of the named program to be executed. The modified contents of the file are then re-read and written out the standard output. This way the wrapped program can be used as a regular Unix filter. Some code formatters take file names but do not modify files directly. Instead they write the formatted code to stdout or stderr. This scenario is supported by a the WrapWrite function that writes code from stdin to the temporary file but relies on the command's own stdout and/or stderr to write out the output.

Ecosystem
proxy.golang.org
Latest Release
v1.3.0
over 2 years ago
Versions
4
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/mdm-code/duct
spec
License MIT
Namespace github.com/mdm-code
First Release almost 3 years ago
Last Synced 14 days ago
Repository
Stars 1 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Overall Top 8.2%