Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed modifications to snippets #174

Merged
merged 8 commits into from
Oct 4, 2021
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions client/src/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"Boolean parameter": {
"prefix": "gx-boolean-param",
"body": [
"<param argument=\"${1:--}\" type=\"boolean\" truevalue=\"$1\" falsevalue=\"$2\" label=\"$3\" help=\"${4:TODO}\" />"
"<param argument=\"${1:--}\" type=\"boolean\" truevalue=\"$1\" falsevalue=\"$2\" checked=\"false\" label=\"$3\" help=\"${4:TODO}\" />"
gallardoalba marked this conversation as resolved.
Show resolved Hide resolved
],
"description": "Boolean parameter"
},
Expand All @@ -125,14 +125,14 @@
"Data parameter with single required dataset": {
"prefix": "gx-data-single-param",
"body": [
"<param argument=\"--$1\" type=\"data\" format=\"$2\" label=\"$3\" help=\"${4:TODO}\" />"
"<param argument=\"--${1:}\" name=\"$1\" type=\"data\" format=\"$2\" label=\"$3\" help=\"${4:TODO}\" />"
],
"description": "Data parameter with single required dataset"
},
"Data parameter with multiple required datasets": {
"prefix": "gx-data-multiple-param",
"body": [
"<param argument=\"--$1\" type=\"data\" format=\"$2\" multiple=\"true\" label=\"$3\" help=\"${4:TODO}\" />"
gallardoalba marked this conversation as resolved.
Show resolved Hide resolved
"<param argument=\"${1:--}\" name=\"$1\" type=\"data\" format=\"$2\" multiple=\"true\" label=\"$3\" help=\"${4:TODO}\" />"
gallardoalba marked this conversation as resolved.
Show resolved Hide resolved
],
"description": "Data parameter with multiple required datasets"
},
Expand All @@ -145,6 +145,7 @@
" <add value=\"_\" />",
" </valid>",
" </sanitizer>",
" <validator type=\"regex\">[0-9a-zA-Z_]+</validator>",
"</param>"
],
"description": "Text parameter with sanitizer"
Expand Down