feat(target): parse Forge repo and revision addresses #150

Merged
barrettruth merged 1 commit from feat/forge-target-parse into main 2026-04-11 20:10:17 +00:00
barrettruth commented 2026-04-11 20:07:27 +00:00

Problem

The normalized :Forge command layer still treats target-bearing modifiers like repo=, rev=, target=, head=, and base= as raw strings. That makes it impossible to carry explicit repo/revision/location intent through the command object cleanly.

Solution

Add a dedicated forge.target module that parses repo, revision, and location addresses, including alias-first repo resolution order. Thread those parsed target objects into forge.cmd.parse() so normalized commands now expose typed target data under parsed_modifiers.

## Problem The normalized `:Forge` command layer still treats target-bearing modifiers like `repo=`, `rev=`, `target=`, `head=`, and `base=` as raw strings. That makes it impossible to carry explicit repo/revision/location intent through the command object cleanly. ## Solution Add a dedicated `forge.target` module that parses repo, revision, and location addresses, including alias-first repo resolution order. Thread those parsed target objects into `forge.cmd.parse()` so normalized commands now expose typed target data under `parsed_modifiers`.
Sign in to join this conversation.
No description provided.