# GUI Builder

## Installation
``` sh
cargo install guibuilder
```
Make sure `~/.cargo/bin` is in your `$PATH`.

## Usage
Run guibuilder and send a JSON-based action to stdin.
Currently there is a limitation however: each action must be on its own line and must be exactly one line long.
Events are printed to stdout.
See the [example.json](example.json) file for an example login window.

## Actions
| Action   | Arguments       | Explaination                       |
|----------|-----------------|------------------------------------|
| Update   | Window (inline) | Update the contents of the window. |
| Clear    | name            | Clear a variable.                  |
| ClearAll |                 | Clear all variables.               |

## Example
``` sh
tr -d '\n' <example.json | cargo run
```

