You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,8 @@ Options are structured input for the `Stencil` templates. They serve as document
153
153
- `string` a simple string
154
154
- `boolean` a boolean
155
155
- `choice` a string from a list of choices. Requires `choices` to be defined
156
-
- `array` an array of other options. Requires `options` to be defined.
156
+
- `array` an array of other options. If child `options` are defined, if will be an array of options, otherwise it will split a string by command, removing any whitespace between
157
+
- **options**: An array of child options. Used if the `array` type contains objects
Copy file name to clipboardexpand all lines: Tests/GenesisKitTests/TemplateTests.swift
+1
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ public class TemplateTests: XCTestCase {
24
24
Option(name:"generate", value:"true", type:.boolean, question:"Should this be generated?"),
25
25
]),
26
26
Option(name:"path", description:"The name of the path to App directory", value:"Parent/Child", type:.string, question:"What is the name of the path for App directory?", required:true),
0 commit comments