mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-10 00:50:43 +01:00
Add usage for plugins.js
This commit is contained in:
parent
8afa887d07
commit
4bafacaec4
@ -16,6 +16,14 @@ const pluginsPath = './plugins';
|
|||||||
|
|
||||||
const command = process.argv[2];
|
const command = process.argv[2];
|
||||||
|
|
||||||
|
if (!command) {
|
||||||
|
console.log('Usage: node plugins.js <command>');
|
||||||
|
console.log('Commands:');
|
||||||
|
console.log(' update - Update all installed plugins');
|
||||||
|
console.log(' install <plugin-git-url> - Install plugin from a Git URL');
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (command === 'update') {
|
if (command === 'update') {
|
||||||
console.log(color.magenta('Updating all plugins'));
|
console.log(color.magenta('Updating all plugins'));
|
||||||
updatePlugins();
|
updatePlugins();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user