# Extract \`SlashCommand\` trait from \`assistant\` \(\#12252\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8040e435208d299e3c6685bef6a5c5f85b7f53a1

Requested commit: 8040e435208d299e3c6685bef6a5c5f85b7f53a1

Commit: 8040e435208d299e3c6685bef6a5c5f85b7f53a1

Tree: 84e1761e236d54ca5e8ee8679b4aebf5ba7a0c3a

Author: Marshall Bowers

Committer: GitHub

## Message

```
Extract `SlashCommand` trait from `assistant` (#12252)

This PR extracts the `SlashCommand` trait (along with the
`SlashCommandRegistry`) from the `assistant` crate.

This will allow us to register slash commands from extensions without
having to make `extension` depend on `assistant`.

Release Notes:

- N/A
```

## Parents

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

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