update "brand rules" to "rules"
This commit is contained in:
@@ -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`);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user