-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f81c4a3
commit 8472f4f
Showing
7 changed files
with
58 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
label: 🚀 Getting Started | ||
label: Getting Started | ||
position: 2 | ||
collapsed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
label: ✍️ Syntax | ||
label: Syntax | ||
position: 2 | ||
collapsed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Number |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,47 @@ | ||
# Text | ||
|
||
The `text` type can be used to define variables that accept text input. | ||
|
||
## Basic | ||
|
||
Basic syntax for the `text` type: | ||
|
||
```yaml | ||
variables: | ||
- name: Name | ||
type: text # Set the type to text | ||
description: Name of the person | ||
template: |- | ||
Hello, {{ .Name }}! | ||
``` | ||
## Multiline | ||
You can use the `multiline` property to define a multiline text input: | ||
|
||
```yaml | ||
variables: | ||
- name: Description | ||
type: text | ||
multiline: true # Set the multiline property to true | ||
description: Description of the person | ||
template: |- | ||
Description: | ||
{{ .Description }} | ||
``` | ||
|
||
## Validation | ||
|
||
### Regex | ||
|
||
You can use the `regex` property to define a regular expression for validation: | ||
|
||
```yaml | ||
variables: | ||
- name: Text | ||
type: text | ||
regex: ^[a-z]+$ # only allow lowercase letters | ||
description: A string of lowercase letters | ||
template: |- | ||
{{ .Text }} | ||
``` |