cmd:create
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cmd:create [2020/06/06 16:33] – deva | cmd:create [2020/06/08 18:27] (current) – deva | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======Create New Node====== | ======Create New Node====== | ||
| - | This command creates a new node in a specified parent. the node id can either be set explicitly or a placeholder variable can be used, which can then in the same command string be used, instead of node id, in other commands. | + | This command creates a new node in a specified parent. the node id can either be set explicitly or a placeholder variable can be used, which can then in the same command string be used, instead of node id, in commands | 
| < | < | ||
| - | create <parent | + | create <node id|placeholder> <parent | 
| </ | </ | ||
| If the '' | If the '' | ||
| - | Placeholder example: | + | The node will be inserted in the child list of the parent, before the '' | 
| + | |||
| + | Placeholder example | ||
| + | < | ||
| + | create x 2 -1; update x title " | ||
| + | </ | ||
| + | |||
| + | Multiple placeholders example - create two new nodes as children of node 2 and set their titles to " | ||
| < | < | ||
| - | create | + | create x 2 -1; create y 2 -1; update x title " | 
| </ | </ | ||
cmd/create.1591453998.txt.gz · Last modified:  by deva
                
                