Skip to content

Commit 405d6cb

Browse files
fix(calendar): standardize output to use Printf consistently
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent da50846 commit 405d6cb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

internal/cmd/calendar_propose_time.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (c *CalendarProposeTimeCmd) Run(ctx context.Context, flags *RootFlags) erro
140140
u.Out().Printf("# API Limitation: %s\n", proposeTimeAPILimitation)
141141
u.Out().Printf("# Issue tracker: %s\n", proposeTimeIssueTrackerURL)
142142
u.Out().Printf("# Action: %s\n", proposeTimeUpvoteAction)
143-
u.Out().Println("")
143+
u.Out().Printf("\n")
144144
u.Out().Printf("event\t%s\n", orEmpty(event.Summary, "(no title)"))
145145
if event.Start != nil {
146146
start := event.Start.DateTime
@@ -159,24 +159,24 @@ func (c *CalendarProposeTimeCmd) Run(ctx context.Context, flags *RootFlags) erro
159159
u.Out().Printf("propose_url\t%s\n", proposeURL)
160160

161161
if decline {
162-
u.Out().Println("")
163-
u.Out().Println("declined\tyes")
162+
u.Out().Printf("\n")
163+
u.Out().Printf("declined\tyes\n")
164164
if strings.TrimSpace(c.Comment) != "" {
165165
u.Out().Printf("comment\t%s\n", strings.TrimSpace(c.Comment))
166166
}
167167
} else {
168-
u.Out().Println("")
169-
u.Out().Println("Tip: To notify the organizer, decline with a comment:")
168+
u.Out().Printf("\n")
169+
u.Out().Printf("Tip: To notify the organizer, decline with a comment:\n")
170170
u.Out().Printf(" gog calendar propose-time %s %s --decline --comment \"Can we do 5pm instead?\"\n", calendarID, eventID)
171171
}
172172

173173
// Open browser if requested
174174
if c.Open {
175-
u.Out().Println("")
176-
u.Out().Println("Opening browser...")
175+
u.Out().Printf("\n")
176+
u.Out().Printf("Opening browser...\n")
177177
if err := openProposeTimeBrowser(proposeURL); err != nil {
178178
u.Err().Printf("Failed to open browser: %v\n", err)
179-
u.Err().Println("Please open the propose_url manually.")
179+
u.Err().Printf("Please open the propose_url manually.\n")
180180
}
181181
}
182182

0 commit comments

Comments
 (0)