diff options
author | yp05327 <576951401@qq.com> | 2024-01-19 03:45:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 03:45:23 +0100 |
commit | b60a7c3358cdeec3e0a731b68be33b6ba63a6563 (patch) | |
tree | 3211199f510d1f9ea2318bb596fab02262058014 /cmd | |
parent | Fix display latest sync time for pull mirrors on the repo page (#28841) (diff) | |
download | forgejo-b60a7c3358cdeec3e0a731b68be33b6ba63a6563.tar.xz forgejo-b60a7c3358cdeec3e0a731b68be33b6ba63a6563.zip |
Return `responseText` instead of string in some functions (#28836)
Follow
https://github.com/go-gitea/gitea/pull/28796#issuecomment-1891727591
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/actions.go | 2 | ||||
-rw-r--r-- | cmd/keys.go | 2 | ||||
-rw-r--r-- | cmd/mailer.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cmd/actions.go b/cmd/actions.go index 275fd7904e..f582c16c81 100644 --- a/cmd/actions.go +++ b/cmd/actions.go @@ -50,6 +50,6 @@ func runGenerateActionsRunnerToken(c *cli.Context) error { if extra.HasError() { return handleCliResponseExtra(extra) } - _, _ = fmt.Printf("%s\n", respText) + _, _ = fmt.Printf("%s\n", respText.Text) return nil } diff --git a/cmd/keys.go b/cmd/keys.go index 9d5278f109..ceeec48486 100644 --- a/cmd/keys.go +++ b/cmd/keys.go @@ -78,6 +78,6 @@ func runKeys(c *cli.Context) error { if extra.Error != nil { return extra.Error } - _, _ = fmt.Fprintln(c.App.Writer, strings.TrimSpace(authorizedString)) + _, _ = fmt.Fprintln(c.App.Writer, strings.TrimSpace(authorizedString.Text)) return nil } diff --git a/cmd/mailer.go b/cmd/mailer.go index 646330e85a..0c5f2c8c8d 100644 --- a/cmd/mailer.go +++ b/cmd/mailer.go @@ -45,6 +45,6 @@ func runSendMail(c *cli.Context) error { if extra.HasError() { return handleCliResponseExtra(extra) } - _, _ = fmt.Printf("Sent %s email(s) to all users\n", respText) + _, _ = fmt.Printf("Sent %s email(s) to all users\n", respText.Text) return nil } |