continue-custom/extensions/cli/src/commands/BaseCommandOptions.ts
Nate be45ab63ca Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e'
git-subtree-dir: extensions/cli
git-subtree-mainline: 1674c2aff1
git-subtree-split: e27a5c87d5
2025-08-20 17:19:56 -07:00

27 lines
902 B
TypeScript

/**
* Base interface for command options that are shared across multiple commands
*/
export interface BaseCommandOptions {
/** Path to configuration file */
config?: string;
/** Array of rule specifications (can be file paths, hub slugs, or string content) */
rule?: string[];
/** Array of tools to allow (overrides default policies) */
allow?: string[];
/** Array of tools to ask permission for (overrides default policies) */
ask?: string[];
/** Array of tools to exclude from use (overrides default policies) */
exclude?: string[];
}
/**
* Extended base options that include verbose and tool control flags
*/
export interface ExtendedCommandOptions extends BaseCommandOptions {
/** Enable verbose logging */
verbose?: boolean;
/** Start in plan mode (backward compatibility) */
readonly?: boolean;
/** Start in auto mode (all tools allowed) */
auto?: boolean;
}