summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-08 21:22:13 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-08 21:22:13 +0900
commit19300ca65cb4cc827a9a9b0f341c601a2780c5e9 (patch)
treec280f0904a14659eec5deea0c5aa849e83ae085b /cli
parent:art: (diff)
downloadsharkey-19300ca65cb4cc827a9a9b0f341c601a2780c5e9.tar.gz
sharkey-19300ca65cb4cc827a9a9b0f341c601a2780c5e9.tar.bz2
sharkey-19300ca65cb4cc827a9a9b0f341c601a2780c5e9.zip
Add new cli tool
Diffstat (limited to 'cli')
-rw-r--r--cli/update-remote-user.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/update-remote-user.js b/cli/update-remote-user.js
new file mode 100644
index 0000000000..b50cddddbe
--- /dev/null
+++ b/cli/update-remote-user.js
@@ -0,0 +1,12 @@
+const updatePerson = require('../built/remote/activitypub/models/person').updatePerson;
+
+const args = process.argv.slice(2);
+const user = args[0];
+
+console.log(`Updating ${user}...`);
+
+updatePerson(user).then(() => {
+ console.log(`Updated ${user}`);
+}, e => {
+ console.error(e);
+});