# fedmake

> Convert a visual text mockup to a fedform definition.
> Mockup has a layout section above a 10+ '=' separator and an attributes section below.
> More information: `python3 fedmake.py --help`.

- Generate a line-oriented definition from a mockup:

`python3 fedmake.py {{path/to/mockup}}`

- Generate a JSON definition:

`python3 fedmake.py {{path/to/mockup}} -j`

- Read mockup from stdin:

`echo '  Name: [____________]' | python3 fedmake.py -`

- Full workflow — mockup to running form:

`python3 fedmake.py {{mockup}} > {{form.def}} && python3 fedform.py {{form.def}}`

Minimal mockup example (saved to `customer.mockup`):

```
Name:  [______________]
Phone: [____________]

==========

name  --required
phone --mask phone:classic
```

All fields use `[...]`. Type comes from attributes (`--type area|list|check|radio`, or `--mask <spec>` for MASK). Multi-row AREA/LIST are sized by `|...|` continuation rows aligned with the opener:

```
Notes: [          ]
       |          |
       |          |
```
