docs-v2/content/flux/v0/stdlib/runtime/version.md

1.4 KiB

title description menu weight
runtime.version() function `runtime.version()` returns the current Flux version.
flux_v0_ref
name parent identifier
runtime.version runtime runtime/version
101

runtime.version() returns the current Flux version.

Function type signature
() => string

{{% caption %}} For more information, see Function type signatures. {{% /caption %}}

Examples

Return the Flux version in a stream of tables

import "array"
import "runtime"

array.from(rows: [{version: runtime.version()}])

{{< expand-wrapper >}} {{% expand "View example output" %}}

Output data

version
(devel)

{{% /expand %}} {{< /expand-wrapper >}}