fix(cli): drop duplicated version in publish output (Coords already includes it)

This commit is contained in:
Alex Dunmow 2026-06-03 01:41:03 +08:00
parent 57a217f54d
commit aafdc44f6f

View File

@ -271,7 +271,7 @@ func newPluginPublishCmd() *cobra.Command {
if err != nil { if err != nil {
return fmt.Errorf("publish: %w", err) return fmt.Errorf("publish: %w", err)
} }
fmt.Printf("Published %s@%s (%d bytes)\n", mod.Coords(), pubResp.Msg.Version.Version, len(archiveBytes)) fmt.Printf("Published %s (%d bytes)\n", mod.Coords(), len(archiveBytes))
for _, w := range pubResp.Msg.Warnings { for _, w := range pubResp.Msg.Warnings {
fmt.Printf(" warning: %s\n", w) fmt.Printf(" warning: %s\n", w)
} }