Merge pull request #353 from influxdata/flux/runtime-package

Added the Flux runtime package
pull/372/head
Scott Anderson 2019-08-05 13:15:42 -06:00 committed by GitHub
commit 87b4a9f316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,22 @@
---
title: Flux runtime package
list_title: Runtime package
description: >
The Flux runtime package includes functions that provide information about the
current Flux runtime. Import the `runtime` package.
menu:
v2_0_ref:
name: Runtime
parent: Flux packages and functions
weight: 202
v2.0/tags: [runtime, functions, package]
---
The Flux runtime package includes functions that provide information about the
current Flux runtime. Import the `runtime` package:
```js
import "runtime"
```
{{< children type="functions" show="pages" >}}

View File

@ -0,0 +1,20 @@
---
title: runtime.version() function
description: The `runtime.version()` function returns the current Flux version.
menu:
v2_0_ref:
name: runtime.version
parent: Runtime
weight: 401
---
The `runtime.version()` function returns the current Flux version.
_**Function type:** Miscellaneous_
_**Output data type:** String_
```js
import "runtime"
runtime.version()
```