diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-08 21:22:13 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-08 21:22:13 +0900 |
| commit | 19300ca65cb4cc827a9a9b0f341c601a2780c5e9 (patch) | |
| tree | c280f0904a14659eec5deea0c5aa849e83ae085b /cli | |
| parent | :art: (diff) | |
| download | sharkey-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.js | 12 |
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); +}); |