From 0bf17db3761018d7ee82f162d00f169e9925205f Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sat, 21 Oct 2023 13:20:17 -0400 Subject: docs: List release versions for each function, add unreleased label (#1868) Signed-off-by: Dave Henderson --- docs-src/content/functions/random.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs-src/content/functions/random.yml') diff --git a/docs-src/content/functions/random.yml b/docs-src/content/functions/random.yml index b4f8c4cd..9f5a0414 100644 --- a/docs-src/content/functions/random.yml +++ b/docs-src/content/functions/random.yml @@ -11,6 +11,7 @@ preamble: | these functions will not deplete system entropy. funcs: - name: random.ASCII + released: v3.4.0 description: | Generates a random string of a desired length, containing the set of printable characters from the 7-bit [ASCII](https://en.wikipedia.org/wiki/ASCII) @@ -25,6 +26,7 @@ funcs: $ gomplate -i '{{ random.ASCII 8 }}' _woJ%D&K - name: random.Alpha + released: v3.4.0 description: | Generates a random alphabetical (`A-Z`, `a-z`) string of a desired length. pipeline: false @@ -37,6 +39,7 @@ funcs: $ gomplate -i '{{ random.Alpha 42 }}' oAqHKxHiytYicMxTMGHnUnAfltPVZDhFkVkgDvatJK - name: random.AlphaNum + released: v3.4.0 description: | Generates a random alphanumeric (`0-9`, `A-Z`, `a-z`) string of a desired length. pipeline: false @@ -49,6 +52,7 @@ funcs: $ gomplate -i '{{ random.AlphaNum 16 }}' 4olRl9mRmVp1nqSm - name: random.String + released: v3.4.0 description: | Generates a random string of a desired length. @@ -100,6 +104,7 @@ funcs: $ gomplate -i 'Poker time! {{ random.String 5 "\U0001f0a1" "\U0001f0de" }}' Poker time! πŸ‚ΌπŸ‚ΊπŸ‚³πŸƒ…πŸ‚ͺ - name: random.Item + released: v3.4.0 description: | Pick an element at a random from a given slice or array. pipeline: true @@ -116,6 +121,7 @@ funcs: $ gomplate -i '{{ getenv "SLICE" | jsonArray | random.Item }}' blue - name: random.Number + released: v3.4.0 description: | Pick a random integer. By default, a number between `0` and `100` (inclusive) is chosen, but this range can be overridden. @@ -142,6 +148,7 @@ funcs: $ gomplate -i '{{ random.Number 5 }}' 2 - name: random.Float + released: v3.4.0 description: | Pick a random decimal floating-point number. By default, a number between `0.0` and `1.0` (_exclusive_, i.e. `[0.0,1.0)`) is chosen, but this range -- cgit v1.2.3