mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	Add new cli tool
This commit is contained in:
		
							parent
							
								
									2f3d744e19
								
							
						
					
					
						commit
						19300ca65c
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								cli/update-remote-user.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								cli/update-remote-user.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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);
 | 
			
		||||
});
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue