gen

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedConfigPaths

func AllowedConfigPaths(root *cobra.Command) []string

AllowedConfigPaths returns all allowed config paths derived from currently registered CLI commands. It includes both section paths (objects) and leaf paths (flags), e.g.:

gitlab
gitlab.scan
gitlab.scan.search

func GenerateExampleConfig

func GenerateExampleConfig(root *cobra.Command) string

GenerateExampleConfig builds a YAML template from the currently registered CLI commands and flags.

func IsAllowedConfigPath

func IsAllowedConfigPath(root *cobra.Command, path string) bool

IsAllowedConfigPath returns true when the given dotted key path is part of the generated config schema.

func IsAllowedReadConfigPath

func IsAllowedReadConfigPath(root *cobra.Command, path string) bool

IsAllowedReadConfigPath returns true when the path is readable from config schema. Read operations allow both: - Exact leaf keys (e.g., gitlab.token) - Section prefixes that contain allowed leaf keys (e.g., gitlab, gitlab.scan)

Types

This section is empty.

Jump to

Keyboard shortcuts

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