summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-09-03 17:51:31 +0200
committerGravatar grunfink2025-09-03 17:51:31 +0200
commitb203eb3703ce823839aabc8aed6b631804da8e4b (patch)
tree08e09ae136e09304eccd17662a06e95372dbb453
parentVersion 2.82 RELEASED. (diff)
parentDocument the update command (diff)
downloadsnac2-b203eb3703ce823839aabc8aed6b631804da8e4b.tar.gz
snac2-b203eb3703ce823839aabc8aed6b631804da8e4b.tar.xz
snac2-b203eb3703ce823839aabc8aed6b631804da8e4b.zip
Merge pull request 'Document the update command' (#464) from xvello/snac2:update-doc into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/464
-rw-r--r--doc/snac.12
-rw-r--r--main.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/doc/snac.1 b/doc/snac.1
index 134ee6e..6c9b3d3 100644
--- a/doc/snac.1
+++ b/doc/snac.1
@@ -282,6 +282,8 @@ necessary information will be prompted for.
282Deletes a user, unfollowing all accounts first. 282Deletes a user, unfollowing all accounts first.
283.It Cm resetpwd Ar basedir Ar uid 283.It Cm resetpwd Ar basedir Ar uid
284Resets a user's password to a new, random one. 284Resets a user's password to a new, random one.
285.It Cm update Ar basedir Ar uid
286Sends a user's updated profile to following instances.
285.It Cm queue Ar basedir Ar uid 287.It Cm queue Ar basedir Ar uid
286Processes the output queue of the specified user, sending all 288Processes the output queue of the specified user, sending all
287enqueued messages and re-enqueing the failing ones. This command 289enqueued messages and re-enqueing the failing ones. This command
diff --git a/main.c b/main.c
index e01b6a2..b855e06 100644
--- a/main.c
+++ b/main.c
@@ -30,6 +30,7 @@ int usage(const char *cmd)
30 "upgrade {basedir} Upgrade to a new version\n" 30 "upgrade {basedir} Upgrade to a new version\n"
31 "adduser {basedir} [{uid}] Adds a new user\n" 31 "adduser {basedir} [{uid}] Adds a new user\n"
32 "deluser {basedir} {uid} Deletes a user\n" 32 "deluser {basedir} {uid} Deletes a user\n"
33 "update {basedir} {uid} Sends a user's updated profile\n"
33 "httpd {basedir} Starts the HTTPD daemon\n" 34 "httpd {basedir} Starts the HTTPD daemon\n"
34 "purge {basedir} Purges old data\n" 35 "purge {basedir} Purges old data\n"
35 "state {basedir} Prints server state\n" 36 "state {basedir} Prints server state\n"