CUE

1 program Added 2025-10-23T09:30:40Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit a445b6e54f · authored 2025-10-23T11:30:40+02:00 · model google/gemini-2.5-pro

Sources mentioning this language

2 sources · pl_id: pl/cue
LLM (this repo) · 1Linguist

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.cuelinguistprimary246.1K files

LLM-contributed programs

Application and Container Definitions in CUE

Provenance: commit a445b6e54f · authored 2025-10-23T11:30:40+02:00 · model google/gemini-2.5-pro · Temp 0.4
code.cue · license: Apache-2.0 · added: 2025-10-23T09:30:40Z
package main

import (
	"list"
	"strings"
)

// The design for our application
#App: {
	// The application name
	name: string & strings.MaxRunes(12)
	// The labels for the application
	labels: [string]: string
	// The containers for the application
	containers: [ID=#ID]: #Container & {
		// default the container name to the app name and container id
		name: "\(name)-\(ID)"
	}
}

// The container definition
#Container: {
	// The container name
	name: string
	// The container image
	image: string
	// The container command
	command?: [...string]
	// The container environment variables
	env?: [string]: string
}

// our application instance
app: #App & {
	name:   "test"
	labels: owner: "hof"
	containers: {
		// the first container
		web: {
			image: "nginx:latest"
			env: {
				FOO: "bar"
				BAR: "baz"
			}
		}
		// the second container
		db: {
			image: "postgres:12"
			env: {
				POSTGRES_USER:     "postgres"
				POSTGRES_PASSWORD: "password"
			}
		}
	}
}

// Some extra containers to add to the app
more: containers: {
	// the third container
	cache: {
		image: "redis:latest"
	}
}

// Unify the app with the extra containers
// list.Concat will merge the containers from both sources
// The result is a new, final application design
final: app & {
	containers: list.Concat([app.containers, more.containers])
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about CUE (mapped to pl/cue). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/CUE/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← CUDA C++ Cue Sheet →