Skip to main content

Cue

CUE is an open source language, with a rich set of APIs and tooling, for defining, generating, and validating all kinds of data: configuration, APIs, database schemas, code... you name it.

🚀 Usage​

Add the following command to your CI/CD pipeline to install Cue:

fluentci run --wasm cue setup

Commands​

NameDescription
setupInstall cue.
fmtFormat CUE configuration files.

Code usage​

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.2.1"

Then, you can use the following code to run Cue Plugin:

use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "setup", vec!["latest"])?;

CI/CD Integration​

The following example shows how to integrate FluentCI with popular CI providers to format your CUE configuration files:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: cue
args: |
setup
- name: fmt
run: cue fmt