v0.2.0¶
Release Date: 2026-11-20
Highlights¶
- Mount the check beside your own commands.
cli.Checkreturns thecheckcommand alone, so a host tool adds it to a command tree it already has, such as the one systemspec-credential'scli.Newreturns.
Added¶
cli.Check(cli.Options): the check command with its own--registry(whenOptions.Registryis nil),--eventsand--targets(whenOptions.Targetsis nil) flags. They take precedence over a parent's flags of the same names, so the check reads and records in the event log its own--eventsnames.
credentials := credspeccli.New(credspeccli.Options{Use: "credentials", Registry: buildRegistry})
credentials.AddCommand(cli.Check(cli.Options{Registry: buildRegistry, Targets: buildTargets}))
cli.New is unchanged.
Installation¶
go get github.com/plexusone/[email protected]