Skip to content

Commit

Permalink
Added history for type() and template for new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nickanderson committed May 11, 2021
1 parent f4eb40d commit 948898a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
39 changes: 39 additions & 0 deletions reference/functions/template.markdown
@@ -0,0 +1,39 @@
---
layout: default
title: FUNCTION NAME
published: false
tags: [reference, functions, more, tags]
---

[%CFEngine_function_prototype(arguments, here)%]

**Description:** Brief description of function.

**Return type:** `data|int|real|string|(i|r|s)list|class|(i|r)range|`

**Arguments:**

* `arguments`: `type`, in the range `.*`
* `here`: `tyep`, in the range: `true,false,yes,no,on,off`


Write a detailed description here.

**Example:**

The whole thing:

[%CFEngine_include_snippet(type.cf)%]

Or, selected sections:

[%CFEngine_include_snippet(type.cf, #\+begin_src cfengine3, .*end_src)%]

Output:

[%CFEngine_include_snippet(type.cf, #\+begin_src\s+example_output\s*, .*end_src)%]

**History:**

* Introduced in VERSION
* Behavior foo added in VERSION
4 changes: 4 additions & 0 deletions reference/functions/type.markdown
Expand Up @@ -69,3 +69,7 @@ with different combinations of the arguments `type` and `detail`.
Output:

[%CFEngine_include_snippet(type.cf, #\+begin_src\s+example_output\s*, .*end_src)%]

**History:**

* Introduced in 3.18.0

0 comments on commit 948898a

Please sign in to comment.