forked from cleveragents/cleveragents-core
47 lines
1.8 KiB
Gherkin
47 lines
1.8 KiB
Gherkin
@cli @v3 @registration
|
|
Feature: V3 CLI Registration and DI Wiring
|
|
As a developer using the CleverAgents CLI
|
|
I want v3 project and resource commands registered in main.py
|
|
So that I can access them from the top-level CLI
|
|
|
|
Background:
|
|
Given the v3 CLI registration module is loaded
|
|
|
|
# ── Subcommand registration ──
|
|
|
|
Scenario: project-v3 subcommand is registered in the CLI app
|
|
When I check the v3 registered subcommand names
|
|
Then the v3 subcommand "project-v3" should be present
|
|
|
|
Scenario: resource-v3 subcommand is registered in the CLI app
|
|
When I check the v3 registered subcommand names
|
|
Then the v3 subcommand "resource-v3" should be present
|
|
|
|
Scenario: project-v3 is listed in valid_cmds for argument validation
|
|
When I inspect the v3 valid commands list
|
|
Then the v3 valid command "project-v3" should be listed
|
|
|
|
Scenario: resource-v3 is listed in valid_cmds for argument validation
|
|
When I inspect the v3 valid commands list
|
|
Then the v3 valid command "resource-v3" should be listed
|
|
|
|
# ── DI Container wiring ──
|
|
|
|
Scenario: DI container provides ProjectServiceV3
|
|
When I request the v3 project service from the container
|
|
Then the v3 container should return a ProjectServiceV3 instance
|
|
|
|
Scenario: DI container provides ResourceServiceV3
|
|
When I request the v3 resource service from the container
|
|
Then the v3 container should return a ResourceServiceV3 instance
|
|
|
|
# ── End-to-end smoke: commands don't crash on --help ──
|
|
|
|
Scenario: project-v3 --help runs without error
|
|
When I invoke the v3 CLI with "project-v3 --help"
|
|
Then the v3 CLI exit code should be 0
|
|
|
|
Scenario: resource-v3 --help runs without error
|
|
When I invoke the v3 CLI with "resource-v3 --help"
|
|
Then the v3 CLI exit code should be 0
|