# v0.18 - Spec Galore

![](./v0.18/banner.png)

## Generate

Specs can now be generated from [clap](https://github.com/clap-rs/clap) based commands with [carapace-spec-clap](https://github.com/carapace-sh/carapace-spec-clap).

![](./v0.18/generate.png)

## Scrape

For advanced completion these can further be converted to Go code with `carapace --scrape [spec]`.

![](./v0.18/scrape.png)

## Json Schema

A [JSON Schema](https://json-schema.org/) is now written to [`${UserConfigDir}/carapace/schema.json`](https://pkg.go.dev/os#UserConfigDir).

![](./v0.18/schema.png)

It can be used by adding the following header to a user spec:

```yaml
# yaml-language-server: $schema=../schema.json
```

## Windows

`$(shell command)` is now executed in Powershell on windows.
