瀏覽代碼

Merge pull request 'Document the update command' (#464) from xvello/snac2:update-doc into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/464
grunfink 11 月之前
父節點
當前提交
b203eb3703
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 2 0
      doc/snac.1
  2. 1 0
      main.c

+ 2 - 0
doc/snac.1

@@ -282,6 +282,8 @@ necessary information will be prompted for.
 Deletes a user, unfollowing all accounts first.
 Deletes a user, unfollowing all accounts first.
 .It Cm resetpwd Ar basedir Ar uid
 .It Cm resetpwd Ar basedir Ar uid
 Resets a user's password to a new, random one.
 Resets a user's password to a new, random one.
+.It Cm update Ar basedir Ar uid
+Sends a user's updated profile to following instances.
 .It Cm queue Ar basedir Ar uid
 .It Cm queue Ar basedir Ar uid
 Processes the output queue of the specified user, sending all
 Processes the output queue of the specified user, sending all
 enqueued messages and re-enqueing the failing ones. This command
 enqueued messages and re-enqueing the failing ones. This command

+ 1 - 0
main.c

@@ -30,6 +30,7 @@ int usage(const char *cmd)
         "upgrade {basedir}                    Upgrade to a new version\n"
         "upgrade {basedir}                    Upgrade to a new version\n"
         "adduser {basedir} [{uid}]            Adds a new user\n"
         "adduser {basedir} [{uid}]            Adds a new user\n"
         "deluser {basedir} {uid}              Deletes a user\n"
         "deluser {basedir} {uid}              Deletes a user\n"
+        "update {basedir} {uid}               Sends a user's updated profile\n"
         "httpd {basedir}                      Starts the HTTPD daemon\n"
         "httpd {basedir}                      Starts the HTTPD daemon\n"
         "purge {basedir}                      Purges old data\n"
         "purge {basedir}                      Purges old data\n"
         "state {basedir}                      Prints server state\n"
         "state {basedir}                      Prints server state\n"