INNER CODE UNIT · Go
generateValuesCmd
bjw-s-labs/helm-charts · tools/helm-schema-tools/cmd/helm-schema-tools/main.go:136
func generateValuesCmd() *cobra.Command {
var (
schemaPath string
outputPath string
schemaRef string
)
cmd := &cobra.Command{
Use: "values",
Short: "Generate commented values.yaml from JSON schema",
Long: `Generate a values.yaml file with comments derived from JSON Schema descriptions.
The schema is first dereferenced using schematools-cli to resolve all $ref references,
then converted to YAML with comments from the 'description' field of each property.
Example:
helm-schema-tools generate values \
--schema charts/library/common/values.schema.json \