Parse, check and evaluate one flux-expr/1 expression, or print the model.
Evaluate one expression against a subject view supplied as JSON.
fluxsim expr eval [options] <source>
fluxsim expr eval "tenureMonths > 12" --bundle ./bundle \
--values '{"tenureMonths": 24}'
| Argument | Description |
|---|
source | the expression source |
| Option | Value | Description |
|---|
--bundle | BUNDLE | path to the FLUX bundle directory (required) |
--simulation-id | SIMULATION_ID | which Simulation document to resolve (default: the bundle's only one) |
--values | VALUES | a subject view as JSON (required) |
-j, --json | | emit machine-readable JSON |
Print the attribute model an expression in this bundle is checked against.
fluxsim expr model [options]
fluxsim expr model --bundle ./bundle
| Option | Value | Description |
|---|
--bundle | BUNDLE | path to the FLUX bundle directory (required) |
--simulation-id | SIMULATION_ID | which Simulation document to resolve (default: the bundle's only one) |
-j, --json | | emit machine-readable JSON |
All commands