File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,19 @@ names are ignored:
182
182
183
183
By default, this format looks for the properties ` name ` for what to print for
184
184
each item and ` children ` for what items are immediate descendants. To change
185
- this, you can use the ` --name ` and ` --children ` options, respectively.
185
+ this, you can use the ` --template ` and ` --children ` options, respectively.
186
+
187
+ #### ` --template <template_str> `
188
+
189
+ This option allows you to grab any properties from each JSON node using a simple
190
+ curly brace template syntax. E.g. for a node with the properties ` id ` = ` 3 ` ,
191
+ ` type ` = ` "Folder" ` , you could write a template string of `Id: {id}, Type:
192
+ {type}` which would result in ` Id: 3, Type: Folder`.
193
+
194
+ #### ` --children <children_prop> `
195
+
196
+ This option allows you to specify the name of the property that contains the
197
+ children JSON nodes, which is ` children ` by default.
186
198
187
199
## Versioning
188
200
You can’t perform that action at this time.
0 commit comments