# extension: Add capabilities for the process API \(\#26224\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6fd9708eeeddb991972ac8c9df0bbaab427de7a7)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6fd9708eeeddb991972ac8c9df0bbaab427de7a7

Requested commit: 6fd9708eeeddb991972ac8c9df0bbaab427de7a7

Commit: 6fd9708eeeddb991972ac8c9df0bbaab427de7a7

Tree: f76df5fc44724af56ece241e3b6fc3c14ab8e8f6

Author: Marshall Bowers

Committer: GitHub

## Message

````
extension: Add capabilities for the process API (#26224)

This PR adds support for capabilities for the extension process API.

In order to use the process API, an extension must declare which
commands it wants to use, with arguments:

```toml
[[capabilities]]
kind = "process:exec"
command = "echo"
args = ["hello!"]
```

A `*` can be used to denote a single wildcard in the argument list:

```toml
[[capabilities]]
kind = "process:exec"
command = "echo"
args = ["*"]
```

And `**` can be used to denote a wildcard for the remaining arguments:

```toml
[[capabilities]]
kind = "process:exec"
command = "ls"
args = ["-a", "**"]
```

Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
````

## Parents

- [99216acdec7d586e91ceb8b1b00ceee9f13be549](https://git.cafe/gitcafe/zed/commit/99216acdec7d586e91ceb8b1b00ceee9f13be549?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6fd9708eeeddb991972ac8c9df0bbaab427de7a7?format=markdown)
