From 8023782e4b796a1aeed8c09b3405e314fa5cd8a4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 8 Jun 2018 21:22:13 +0900 Subject: [PATCH] Add new cli tool --- cli/update-remote-user.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cli/update-remote-user.js diff --git a/cli/update-remote-user.js b/cli/update-remote-user.js new file mode 100644 index 000000000..b50cddddb --- /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); +});