14f134a463
- Implement plugin CLI subcommand group with list, show, enable, disable, install, remove commands - Add JSON/YAML output format support for all plugin commands - Create Behave BDD tests for plugin CLI functionality - Full type annotations and pyright compliance - Supports plugin state management (ACTIVATED, DEACTIVATED, DISCOVERED, ERRORED) Closes #5756
30 lines
1.1 KiB
Gherkin
30 lines
1.1 KiB
Gherkin
Feature: Plugin CLI Commands
|
|
As a user
|
|
I want to manage plugins through the CLI
|
|
So that I can list, enable, disable, and manage plugins
|
|
|
|
Scenario: List plugins when none are installed
|
|
When I run "agents plugin list"
|
|
Then the output should contain "No plugins found"
|
|
|
|
Scenario: Show plugin details
|
|
Given a plugin named "test-plugin" is registered
|
|
When I run "agents plugin show test-plugin"
|
|
Then the output should contain "test-plugin"
|
|
|
|
Scenario: Enable a plugin
|
|
Given a plugin named "test-plugin" is registered but disabled
|
|
When I run "agents plugin enable test-plugin"
|
|
Then the output should contain "Enabled plugin"
|
|
|
|
Scenario: Disable a plugin
|
|
Given a plugin named "test-plugin" is registered and enabled
|
|
When I run "agents plugin disable test-plugin"
|
|
Then the output should contain "Disabled plugin"
|
|
|
|
Scenario: List plugins with JSON output
|
|
Given a plugin named "test-plugin" is registered
|
|
When I run "agents plugin list --format json"
|
|
Then the output should be valid JSON
|
|
And the JSON should contain a plugin named "test-plugin"
|