id = "cdk8s" name = "CDK8s" description = "Define Kubernetes applications and reusable abstractions using familiar programming languages." homepage = "https://cdk8s.io" executables = ["cdk8s"] [commands] format = 1 label = "CDK8s project" description = "Create a project, import CRDs and synthesize manifests." quality = "ai-draft" base = "fig:cdk8s" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cdk8s.ts" license = "MIT" [[commands.subcommand]] path = ["init"] label = "Create a project" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cdk8s.ts" license = "MIT" [[commands.subcommand.field]] id = "type" label = "Project type" type = "enum" position = 0 choices = [{ value = "typescript-app", label = "TypeScript" }, { value = "python-app", label = "Python" }, { value = "java-app", label = "Java" }, { value = "go-app", label = "Go" }] sources = ["fig"] [[commands.subcommand.task]] id = "init" label = "Create a project" fields = ["type"] required = ["type"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["type"] [[commands.subcommand]] path = ["import"] label = "Import a CRD" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cdk8s.ts" license = "MIT" [[commands.subcommand.field]] id = "spec" label = "CRD schema" type = "path" position = 0 path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "language" label = "Language" type = "enum" option = ["--language", "-l"] choices = [{ value = "typescript", label = "TypeScript" }, { value = "python", label = "Python" }, { value = "java", label = "Java" }, { value = "go", label = "Go" }] sources = ["fig"] [[commands.subcommand.field]] id = "output" label = "Output directory" type = "path" option = ["--output", "-o"] path = { kind = "directory", role = "output", must_exist = false } sources = ["fig"] [[commands.subcommand.field]] id = "class_prefix" label = "Class name prefix" type = "string" option = ["--class-prefix"] sources = ["fig"] [[commands.subcommand.field]] id = "exclude" label = "Exclude types (regexp)" type = "string" option = ["--exclude"] multiple = true sources = ["fig"] [[commands.subcommand.task]] id = "import" label = "Import a CRD" fields = ["spec", "language", "output"] required = ["spec"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["spec", "language", "output", "class_prefix", "exclude"] [[commands.subcommand]] path = ["synth"] label = "Synthesize manifests" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cdk8s.ts" license = "MIT" [[commands.subcommand.field]] id = "output" label = "Output directory" type = "path" option = ["--output", "-o"] path = { kind = "directory", role = "output", must_exist = false } sources = ["fig"] [[commands.subcommand.field]] id = "stdout" label = "Write to standard output" type = "boolean" option = ["--stdout", "-s"] sources = ["fig"] [[commands.subcommand.field]] id = "app" label = "App command" description = "Command used to execute the cdk8s app." type = "string" option = ["--app", "-a"] sources = ["fig"] [[commands.subcommand.field]] id = "validate" label = "Run validation plugins" type = "boolean" option = ["--validate"] false_option = "--no-validate" sources = ["fig"] [[commands.subcommand.task]] id = "synth" label = "Synthesize to a directory" fields = ["output", "validate"] required = [] [[commands.subcommand.task]] id = "synth-stdout" label = "Print manifests" fields = ["stdout"] required = [] set = { stdout = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["output", "stdout", "validate"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["app"]