secretscmd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(args []string, readme string) error

Check runs the top-level "delinea-util check" diagnostic. It shares the check machinery (buildConfig, ds.New, checkConfig, probeConfig, checkChildEnv, ...) with the secrets group but is a whole-tool verb: configuration, reachability, and credential validity are diagnosed for the whole tool, and verifying secret mappings is the optional extra it does when mappings are passed. The parent renders any usage error (via CheckUsage); Check handles only help.

func CheckUsage

func CheckUsage(readme string) string

CheckUsage returns the usage for the top-level check verb, its synopsis and mapping forms scraped from the unified README so they cannot drift.

func CommandUsageText

func CommandUsageText(name, readme string) (string, bool)

CommandUsageText returns the help page for a secrets leaf command. The parent uses it when rendering a leaf's usage error, so the remedy includes that command's flags rather than the secrets-group command listing.

func Dispatch

func Dispatch(args []string, readme string) error

Dispatch runs one secrets subcommand (run/print/template). It is the exported entry point the parent (delinea-util) calls as "delinea-util secrets ...", handed everything after the "secrets" word plus the unified README (for help text). It returns errors rather than rendering them: the parent owns error rendering, exit-code mapping, --version, and the --readme/--tree docs. The child-process exit-code propagation in launch_stream.go still calls os.Exit directly, unchanged.

check is NOT here: it is the top-level "delinea-util check" verb (see Check), because configuration, reachability, and credential validity are not secrets-specific.

func UsageText

func UsageText(readme string) string

UsageText returns the secrets-group usage with the command synopsis, connection settings, and mapping forms single-sourced from the ONE unified README that package main embeds and passes in, so they cannot drift and there is a single authoritative document for the whole tool. The parent (delinea-util) renders it beneath a usage error whose args begin with "secrets".

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL