# `spex specs`
Prints the project specs.
## Acceptance criteria
- MUST print the project specs as a YAML list.
- MUST add a `path` field after `id` with the spec file's absolute path with `--ai` flag (e.g. `/work/shop/shop-spex/specs/place-pizza-order.yaml`).
- MUST limit the output to the spec IDs given in `--id <id>...`; it defaults to all specs.
- MUST error on an unrecognized ID given to `--id`.
- MUST limit the output to the specs whose `packages` include a package named in `--package <name>...`, matched by either full `package_name` or `package_short_name`; it defaults to all specs.
- MUST error on a name given to `--package` that matches no package.
- MUST write the output to the file given in `--output <path>` instead of stdout, since the full specs list is large and can get truncated when printed to a terminal or piped through a shell.
## Examples
```sh
spex specs --ai --package api
spex specs --id place-pizza-order list-pizza-menu
```