Skip to content

Commit 4963877

Browse files
aledbfclaude
andcommitted
fix(parity): features info verbose emite Published Tags antes de Dependency Tree
Orden de secciones en modo verbose texto (featuresCLI/info.ts): Manifest → Canonical → Published Tags → Dependency Tree. Go los tenía invertidos. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent eb34e19 commit 4963877

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

‎internal/cli/features_info.go‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,8 @@ func runFeaturesInfo(out Output, mode, featureID, logLevel, outputFormat string)
102102
}
103103
}
104104

105-
// Dependencies — text mode only, matching TS behavior: the boxed title then
106-
// the mermaid dependency graph (built by the shared renderer).
107-
if (mode == "dependencies" || mode == "verbose") && outputFormat == "text" {
108-
logger.Write(fmt.Sprintf("Building dependency graph for '%s'...", featureID), log.LevelInfo)
109-
fmt.Fprintln(out.Stdout(), encloseStringInBox("Dependency Tree (Render with https://mermaid.live/)"))
110-
fmt.Fprintln(out.Stdout(), renderDependencyMermaid(client, logger, []string{featureID}))
111-
}
112-
113-
// Tags
105+
// Tags. TS parity: verbose text order is Manifest → Canonical → Published Tags
106+
// → Dependency Tree (featuresCLI/info.ts), so Tags precedes Dependencies.
114107
if mode == "tags" || mode == "verbose" {
115108
tags, err := client.GetPublishedTags(ref)
116109
if err != nil || len(tags) == 0 {
@@ -129,6 +122,14 @@ func runFeaturesInfo(out Output, mode, featureID, logLevel, outputFormat string)
129122
}
130123
}
131124

125+
// Dependencies — text mode only: the boxed title then the mermaid dependency
126+
// graph (built by the shared renderer). Emitted AFTER Published Tags (TS order).
127+
if (mode == "dependencies" || mode == "verbose") && outputFormat == "text" {
128+
logger.Write(fmt.Sprintf("Building dependency graph for '%s'...", featureID), log.LevelInfo)
129+
fmt.Fprintln(out.Stdout(), encloseStringInBox("Dependency Tree (Render with https://mermaid.live/)"))
130+
fmt.Fprintln(out.Stdout(), renderDependencyMermaid(client, logger, []string{featureID}))
131+
}
132+
132133
if outputFormat == "json" {
133134
data, _ := json.MarshalIndent(jsonOutput, "", " ")
134135
fmt.Fprintln(out.Stdout(), string(data))

0 commit comments

Comments
 (0)