diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-13 10:46:37 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-13 10:46:37 +0900 |
| commit | 89389940363143dd32dfa9920eb34850de541472 (patch) | |
| tree | 071042601b254ba31faa1db6c29b814a4609e1cf /cmd | |
| parent | 96d382f8054eede233eb34e53660c9ff323534db (diff) | |
cmd/mbf: display runtime dependency info
This only presents top-level dependencies, resolving indirect dependencies can be misleading in this context.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mbf/main.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index 62588a3f..81e2dfc2 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -175,6 +175,17 @@ func main() { fmt.Println("website : " + strings.TrimSuffix(meta.Website, "/")) } + if len(meta.Dependencies) > 0 { + fmt.Print("depends on :") + for _, d := range meta.Dependencies { + s := rosa.GetMetadata(d).Name + if version := rosa.Std.Version(d); version != rosa.Unversioned { + s += "-" + version + } + fmt.Print(" " + s) + } + fmt.Println() + } const statusPrefix = "status : " if flagStatus { |
