Files
iris-context/commands/ops/datree.go
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

35 lines
1.6 KiB
Go

package ops
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "datree",
Description: "Help for",
Subcommands: []spec.Subcommand{
{Name: "completion", Description: "Generate completion script for bash,zsh,fish,powershell"},
{Name: "config", Description: "Internal configuration management for datree config file"},
{Name: "get", Description: "Get configuration value"},
{Name: "set", Description: "Set configuration value"},
{Name: "help", Description: "Help about any command"},
{Name: "kustomize", Description: "Generate kustomization files from manifests"},
{Name: "test", Description: "Test kustomization files"},
{Name: "version", Description: "Print the version number"},
},
Options: []spec.Option{
{Name: "--help", Description: "Help for 'test'"},
{Name: "--ignore-missing-schemas", Description: "Ignore missing schemas when executing schema validation step"},
{Name: "--no-record", Description: "Do not send policy checks metadata to the backend"},
{Name: "--only-k8s-files", Description: "Define output format (simple, yaml, json, xml, JUnit)"},
{Name: "-p", Description: "Policy name to run against"},
{Name: "--policy-config", Description: "Path for local policies configuration file"},
{Name: "--schema-location", Description: "Override schemas location search path (can be specified multiple times)"},
{Name: "-s", Description: "Set kubernetes version to validate against. Defaults to 1.19.0"},
{Name: "--verbose", Description: "Display 'How to Fix' link"},
{Name: "-h", Description: "Set configuration value"},
},
})
}