Skip to content

Commit

Permalink
Test units and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Nov 6, 2021
1 parent fbe21bc commit a184d67
Show file tree
Hide file tree
Showing 5 changed files with 955 additions and 89 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,17 @@ Best practices:

**Commands**:

| Cmd | Result | Behaviour |
|---------------------|------------------|------------------------------------------------------|
| `GoTo(Begin)` | `Changed | None` | Move cursor to the top of the current tree node |
| `GoTo(End)` | `Changed | None` | Move cursor to the bottom of the current tree node |
| `Move(Down)` | `Changed | None` | Go to next element |
| `Move(Up)` | `Changed | None` | Go to previous element |
| `Scroll(Down)` | `Changed | None` | Move cursor down by defined max steps or end of node |
| `Scroll(Up)` | `Changed | None` | Move cursor up by defined max steps or begin of node |
| `Submit` | `Submit` | Just returns submit result with current state |
| `Toggle` | `None` | Opens/closes highlighted node |
| Cmd | Result | Behaviour |
|---------------------------|------------------|------------------------------------------------------|
| `Custom($TREE_CMD_CLOSE)` | `None` | Close selected node |
| `Custom($TREE_CMD_OPEN)` | `None` | Open selected node |
| `GoTo(Begin)` | `Changed | None` | Move cursor to the top of the current tree node |
| `GoTo(End)` | `Changed | None` | Move cursor to the bottom of the current tree node |
| `Move(Down)` | `Changed | None` | Go to next element |
| `Move(Up)` | `Changed | None` | Go to previous element |
| `Scroll(Down)` | `Changed | None` | Move cursor down by defined max steps or end of node |
| `Scroll(Up)` | `Changed | None` | Move cursor up by defined max steps or begin of node |
| `Submit` | `Submit` | Just returns submit result with current state |

**State**: the state returned is a `One(String)` containing the id of the selected node. If no node is selected `None` is returned.

Expand Down
Loading

0 comments on commit a184d67

Please sign in to comment.