Feature: Git resource CLI supports URL flag
  Background:
    Given a fresh in-memory resource registry
    And built-in types are bootstrapped

  Scenario: Adding a git resource with only a URL
    When I run resource add "git" "local/upstream" with url "git@github.com:org/upstream.git"
    Then the resource command should succeed
    And the resource registry resource "local/upstream" should have property "url" equal to "git@github.com:org/upstream.git"

  Scenario: Using --url with a non-git resource type is rejected
    When I run resource add type "fs-directory" name "local/data" path "/tmp/data" url "git@github.com:org/upstream.git"
    Then the resource command should fail
    And the resource output should contain "--url is only valid for git resources"
