Skip to content

Commit

Permalink
Run make doc ;-(
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Aug 14, 2023
1 parent 834b83c commit ce1c43d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/procedures/cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ letting them act on other cursors.

## cursor and start: / initial: attribute

Sometimes, it is necessary to enter a cursor not at its first child, but
its second or third. Once such a cursor is entered and a `continue` is
met it will "rewind" to the first child (not the "start" child).

```
task 'create mandate'
cursor start: 'approve mandate'
Expand All @@ -70,6 +74,15 @@ cursor start: 'approve mandate'
task 'activate mandate'
```

The string passed to start:/initial: is looked up (down) in the cursor
in the order: (example `cursor start: 'bravo'`)

* tag (for example `push l 'b' tag: 'bravo'`)
* string argument (for example `task 'toto' context: 'bravo'`)
* string target (for example `task 'bravo'`)
* name target (for example `bravo _`)
* att target (for example `task 'toto' bravo: 'ok'`)

## see also

[Break](break.md), [continue](break.md), [loop](loop.md).
Expand Down

0 comments on commit ce1c43d

Please sign in to comment.