gitea push
This commit is contained in:
+4
@@ -77,6 +77,10 @@ function run() {
|
||||
.option('skills', {
|
||||
type: 'boolean',
|
||||
description: 'Enable/disable skills support (experimental, default: enabled)',
|
||||
})
|
||||
.option('subagents', {
|
||||
type: 'boolean',
|
||||
description: 'Enable/disable subagents support (experimental, default: enabled)',
|
||||
});
|
||||
}, handlers_1.applyHandler)
|
||||
.command('init', 'Scaffold a .ruler directory with default files', (y) => {
|
||||
|
||||
+9
-1
@@ -114,8 +114,16 @@ async function applyHandler(argv) {
|
||||
else {
|
||||
skillsEnabled = undefined; // Let config/default decide
|
||||
}
|
||||
// Determine subagents preference: CLI > TOML > Default (enabled)
|
||||
let subagentsEnabled;
|
||||
if (argv.subagents !== undefined) {
|
||||
subagentsEnabled = argv.subagents;
|
||||
}
|
||||
else {
|
||||
subagentsEnabled = undefined; // Let config/default decide
|
||||
}
|
||||
try {
|
||||
await (0, lib_1.applyAllAgentConfigs)(projectRoot, agents, configPath, mcpEnabled, mcpStrategy, gitignorePreference, verbose, dryRun, localOnly, nested, backup, skillsEnabled, gitignoreLocalPreference);
|
||||
await (0, lib_1.applyAllAgentConfigs)(projectRoot, agents, configPath, mcpEnabled, mcpStrategy, gitignorePreference, verbose, dryRun, localOnly, nested, backup, skillsEnabled, gitignoreLocalPreference, subagentsEnabled);
|
||||
console.log('Ruler apply completed successfully.');
|
||||
}
|
||||
catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user