Skip to content

Commit

Permalink
Update the examples to use the new auto-array and auto-object.
Browse files Browse the repository at this point in the history
Part of #42. Part of #36.
  • Loading branch information
jkomoros committed Jul 8, 2023
1 parent 9906fa0 commit cb74ab6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
11 changes: 4 additions & 7 deletions seeds/example-basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@
"type": "render",
"template": "Write a limerick about a person named {{name}}.",
"vars": {
"type": "object",
"properties": {
"name": {
"type": "input",
"question": "What is the name to use?",
"default": "Bob"
}
"name": {
"type": "input",
"question": "What is the name to use?",
"default": "Bob"
}
}
}
Expand Down
16 changes: 5 additions & 11 deletions seeds/example-complex.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,8 @@
"type": "render",
"template": "Write a limerick about a person named {{name}}, where {{name}} is used as a rhyme.",
"vars": {
"type": "object",
"properties": {
"name": {
"seed": "prompt-name"
}
"name": {
"seed": "prompt-name"
}
}
}
Expand Down Expand Up @@ -163,12 +160,9 @@
"type": "render",
"template": "OK, I'll call you {{name}} from now on.",
"vars": {
"type": "object",
"properties": {
"name": {
"type": "var",
"name": "komoroske.com:user_first_name"
}
"name": {
"type": "var",
"name": "komoroske.com:user_first_name"
}
}
}
Expand Down

0 comments on commit cb74ab6

Please sign in to comment.