fix(cli): add missing resource command flags per specification #1192

Merged
freemo merged 2 commits from feature/m4-resource-flags into master 2026-04-02 08:31:27 +00:00

2 Commits

Author SHA1 Message Date
freemo e522f8ca33 fix(cli): use rsplit for clone-into URL parsing in properties block
CI / lint (pull_request) Failing after 2s
CI / security (pull_request) Failing after 2s
CI / quality (pull_request) Failing after 1s
CI / unit_tests (pull_request) Failing after 2s
CI / integration_tests (pull_request) Failing after 1s
CI / e2e_tests (pull_request) Failing after 2s
CI / build (pull_request) Failing after 1s
CI / helm (pull_request) Failing after 2s
CI / typecheck (pull_request) Successful in 3m56s
CI / docker (pull_request) Has been skipped
CI / coverage (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 1s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Has been skipped
The properties-building block (line 703) used split(":", 1) which
incorrectly splits HTTPS URLs like https://github.com/org/repo.git:/workspace.
The early validation block (line 637) already correctly used rsplit(":", 1).
This fix makes both blocks consistent.

ISSUES CLOSED: #904
2026-04-02 08:25:18 +00:00
freemo 170f3f3b64 fix(cli): add missing resource command flags per specification
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 19s
CI / helm (pull_request) Successful in 23s
CI / build (pull_request) Successful in 25s
CI / quality (pull_request) Successful in 40s
CI / typecheck (pull_request) Successful in 59s
CI / security (pull_request) Successful in 59s
CI / unit_tests (pull_request) Failing after 4m4s
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Successful in 7m11s
CI / coverage (pull_request) Successful in 8m44s
CI / e2e_tests (pull_request) Successful in 17m26s
CI / status-check (pull_request) Failing after 1s
CI / benchmark-regression (pull_request) Successful in 55m2s
Add missing CLI flags per specification to resource and LSP commands:

- resource add --update: Re-register an existing resource by removing the
  old entry and creating a new one. When the resource does not yet exist,
  --update behaves as a normal add.

- resource add --clone-into REPO_URL:CONTAINER_PATH: Clone a remote
  repository into a container at a specified path. Only valid for
  container-instance and devcontainer-instance types. Stored in resource
  properties as a JSON descriptor.

- resource add --mount: Expand container type validation to accept both
  container-instance and devcontainer-instance (was restricted to only
  container-instance).

- resource list --all: Include auto-discovered child resources in the
  listing. Default behavior now excludes auto-discovered resources
  (auto_discovered=True) by filtering at the service layer via a new
  include_auto_discovered parameter on list_resources().

- resource tree --depth: Change default from -1 (unlimited) to 3, matching
  the specification.

- resource type list [REGEX]: Add optional positional regex argument to
  filter type names.

- lsp list [REGEX]: Add optional positional regex argument to filter
  server names.

All existing test step definitions updated to pass the new parameters.
New Behave feature file (resource_cli_flags_904.feature) with 12 scenarios
covering each new flag.

ISSUES CLOSED: #904
2026-03-31 01:33:28 +00:00