marmot-logger 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/marmot.js +2 -2
- package/package.json +1 -1
- package/src/cli/disable.js +16 -3
- package/src/cli/enable.js +16 -3
package/bin/marmot.js
CHANGED
|
@@ -27,12 +27,12 @@ program
|
|
|
27
27
|
|
|
28
28
|
program
|
|
29
29
|
.command('enable <plugin>')
|
|
30
|
-
.description('Enable a plugin (file-monitor, terminal, git-hooks, makefile, claude-hooks, process-monitor)')
|
|
30
|
+
.description('Enable a plugin (file-monitor, terminal, git-hooks, makefile, claude-hooks, process-monitor, all)')
|
|
31
31
|
.action(enable);
|
|
32
32
|
|
|
33
33
|
program
|
|
34
34
|
.command('disable <plugin>')
|
|
35
|
-
.description('Disable a plugin')
|
|
35
|
+
.description('Disable a plugin (or "all" to disable all)')
|
|
36
36
|
.action(disable);
|
|
37
37
|
|
|
38
38
|
program
|
package/package.json
CHANGED
package/src/cli/disable.js
CHANGED
|
@@ -4,10 +4,21 @@ const plugins = require('../plugins');
|
|
|
4
4
|
|
|
5
5
|
const VALID_PLUGINS = ['file-monitor', 'terminal', 'git-hooks', 'makefile', 'claude-hooks', 'process-monitor'];
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
async function disable(pluginName) {
|
|
8
|
+
// Handle "all" - disable all plugins
|
|
9
|
+
if (pluginName === 'all') {
|
|
10
|
+
console.log(chalk.bold('Disabling all plugins...\n'));
|
|
11
|
+
for (const plugin of VALID_PLUGINS) {
|
|
12
|
+
await disable(plugin);
|
|
13
|
+
console.log('');
|
|
14
|
+
}
|
|
15
|
+
console.log(chalk.green('✓ All plugins disabled.'));
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
8
19
|
if (!VALID_PLUGINS.includes(pluginName)) {
|
|
9
20
|
console.log(chalk.red(`Unknown plugin: ${pluginName}`));
|
|
10
|
-
console.log('Available plugins:', VALID_PLUGINS.join(', '));
|
|
21
|
+
console.log('Available plugins:', VALID_PLUGINS.join(', '), ', all');
|
|
11
22
|
process.exit(1);
|
|
12
23
|
}
|
|
13
24
|
|
|
@@ -37,4 +48,6 @@ module.exports = async function disable(pluginName) {
|
|
|
37
48
|
config.saveConfig(projectConfig);
|
|
38
49
|
|
|
39
50
|
console.log(chalk.green(`✓ Plugin '${pluginName}' disabled.`));
|
|
40
|
-
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
module.exports = disable;
|
package/src/cli/enable.js
CHANGED
|
@@ -4,10 +4,21 @@ const plugins = require('../plugins');
|
|
|
4
4
|
|
|
5
5
|
const VALID_PLUGINS = ['file-monitor', 'terminal', 'git-hooks', 'makefile', 'claude-hooks', 'process-monitor'];
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
async function enable(pluginName) {
|
|
8
|
+
// Handle "all" - enable all plugins
|
|
9
|
+
if (pluginName === 'all') {
|
|
10
|
+
console.log(chalk.bold('Enabling all plugins...\n'));
|
|
11
|
+
for (const plugin of VALID_PLUGINS) {
|
|
12
|
+
await enable(plugin);
|
|
13
|
+
console.log('');
|
|
14
|
+
}
|
|
15
|
+
console.log(chalk.green('✓ All plugins enabled.'));
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
8
19
|
if (!VALID_PLUGINS.includes(pluginName)) {
|
|
9
20
|
console.log(chalk.red(`Unknown plugin: ${pluginName}`));
|
|
10
|
-
console.log('Available plugins:', VALID_PLUGINS.join(', '));
|
|
21
|
+
console.log('Available plugins:', VALID_PLUGINS.join(', '), ', all');
|
|
11
22
|
process.exit(1);
|
|
12
23
|
}
|
|
13
24
|
|
|
@@ -37,4 +48,6 @@ module.exports = async function enable(pluginName) {
|
|
|
37
48
|
console.log(chalk.red(`Setup error: ${err.message}`));
|
|
38
49
|
}
|
|
39
50
|
}
|
|
40
|
-
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
module.exports = enable;
|