update "brand rules" to "rules"

This commit is contained in:
Joe Danziger
2025-05-22 14:26:08 -04:00
parent 0c64e9a739
commit c5c46e0cf8
9 changed files with 54 additions and 115 deletions

View File

@@ -72,7 +72,7 @@ export async function initializeProjectDirect(args, log, context = {}) {
// Handle rules option just like CLI
if (Array.isArray(args.rules) && args.rules.length > 0) {
options.rules = args.rules;
log.info(`Including brand rules: ${args.rules.join(', ')}`);
log.info(`Including rules: ${args.rules.join(', ')}`);
} else {
options.rules = ['cursor'];
log.info(`No rules specified, defaulting to: cursor`);

View File

@@ -1,6 +1,6 @@
/**
* rules.js
* Direct function implementation for adding or removing brand rules
* Direct function implementation for adding or removing rules
*/
import {
@@ -18,10 +18,10 @@ import path from 'path';
import fs from 'fs';
/**
* Direct function wrapper for adding or removing brand rules.
* Direct function wrapper for adding or removing rules.
* @param {Object} args - Command arguments
* @param {"add"|"remove"} args.action - Action to perform: add or remove rules
* @param {string[]} args.rules - List of brand rules to add or remove
* @param {string[]} args.rules - List of rules to add or remove
* @param {string} args.projectRoot - Absolute path to the project root
* @param {boolean} [args.yes=true] - Run non-interactively
* @param {Object} log - Logger object