ZIm/extensions/test-extension
Marshall Bowers 6fd9708eee
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>
2025-03-06 11:55:00 -05:00
..
languages/gleam Use a dedicated test extension in extension tests (#13781) 2024-07-03 11:10:51 -04:00
src extension: Add capabilities for the process API (#26224) 2025-03-06 11:55:00 -05:00
Cargo.toml chore: Use workspace fields for edition and publish (#23291) 2025-01-17 17:39:22 +01:00
extension.toml extension: Add capabilities for the process API (#26224) 2025-03-06 11:55:00 -05:00
LICENSE-APACHE Use a dedicated test extension in extension tests (#13781) 2024-07-03 11:10:51 -04:00
README.md Use a dedicated test extension in extension tests (#13781) 2024-07-03 11:10:51 -04:00

Test Extension

This is a test extension that we use in the tests for the extension crate.

Originally based off the Gleam extension.