ref: 992a04bed0dab9da71b6428bb122c4b35883b048
parent: 8fb4b04ad25350f33e2b047870da26563a581019
author: penny <penny@limitedideas.org>
date: Tue Nov 4 14:46:53 EST 2025
port /rt
--- a/commands.go
+++ b/commands.go
@@ -944,6 +944,27 @@
return cmd
}
+func (hc *Hellclient) rtcmd() cmder {+ cmd := &basiccmd{}+ cmd.hc = hc
+ cmd.bname = "rt"
+ cmd.bflags = status
+ cmd.doer = func(data *cmddata) string {+ var status *mastodon.Status
+ var err error
+ rtfunc := func() {+ status, err = hc.client.Reblog(context.Background(), data.status.ID)
+ hc.recentpost = status
+ }
+ hc.dispatchAnon(rtfunc).Wait()
+ hc.printAndIncrement(hc.ctxref, status)
+ if err != nil {+ return fmt.Sprintf("err: %s\n", err)+ }
+ return ""
+ }
+ return cmd
+}
// Commmands are lazy evaluated in this order
// Single/two letter matches need to match the most common commands
@@ -956,12 +977,13 @@
hc.translatecmd(),
hc.catcmd(),
hc.replycmd(),
+ hc.rtcmd(),
hc.rmcmd(),
+ &reloadcmd{hc}, &profilecmd{hc, hc.cmdload}, &dmcmd{hc},hc.downloadcmd(),
&helpcmd{hc},- &reloadcmd{hc}, &detachcmd{hc}, &attachcmd{hc}, &statscmd{hc},--
⑨