- Repository:
git://eleglicity.com/go/linux-scripts.git - Go import metadata:
https://eleglicity.com/go-modules/linux-scripts/
Go import metadata is used by go get; it is not documentation and is intentionally blank in a browser.
Versionless commands resolve to the latest published release (v0.1.0):
go install eleglicity.com/go-modules/linux-scripts/cmd/optgen
Explicit @latest forms:
go install eleglicity.com/go-modules/linux-scripts/cmd/optgen@latest
Versions
| Version | Commit | Go commands | Artifacts |
|---|---|---|---|
v0.1.0 (latest) |
5b38a265aac784b9d91ae1b884d2fdb23b1e08ad |
go install eleglicity.com/go-modules/linux-scripts/cmd/optgen@v0.1.0 |
— |
v0.0.1 |
d9d23b9aa4c8e876789022ed54bb73a593dd8090 |
No Go module (no go.mod at this tag). | — |
Overview
Deprecated. The consumable Go tooling moved to
eleglicity.com/go-modules/optspec at
git://eleglicity.com/go/optspec. This repository continues to carry the
Linux host scripts and shell test utilities.
The old import paths remain as thin compatibility wrappers over
optspec, so existing builds keep working while consumers migrate.
Install
Install the canonical module instead:
go get eleglicity.com/go-modules/optspec
go install eleglicity.com/go-modules/optspec/cmd/optgen@latest
The legacy linux-scripts module and its cmd/optgen path are retained
only for compatibility.
Usage
New code should import eleglicity.com/go-modules/optspec and use
optspec.Compile, optspec.GenerateBashCompletion, and
optspec.GenerateZshCompletion directly.
Existing code can keep importing
eleglicity.com/go-modules/linux-scripts/pkg/optspec; every type and
function delegates to the canonical package.
Mechanism
linux-scripts/pkg/optspec aliases the canonical optspec types and
forwards its functions. linux-scripts/cmd/optgen is a thin main that
calls the canonical optgen.Run implementation. No generation logic
remains in this repository.
Maintenance
The canonical module is versioned and released independently. Do not add
new option-parsing behavior here; make the change in optspec and let
the compatibility wrappers follow.