organ-ai-zer
Version:
AI-powered file organizer CLI tool
54 lines • 2.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const organize_1 = require("./commands/organize");
const preview_1 = require("./commands/preview");
const init_1 = require("./commands/init");
const cache_1 = require("./commands/cache");
const interactive_organize_1 = require("./commands/interactive-organize");
const program = new commander_1.Command();
program
.name('organ-ai-zer')
.description('AI-powered file organizer CLI tool')
.version('1.0.0');
program
.command('init')
.description('Initialize configuration file')
.option('--force', 'Overwrite existing config file')
.option('--no-interactive', 'Skip interactive setup and use defaults')
.option('-c, --config <path>', 'Custom config file path')
.action(init_1.init);
program
.command('organize')
.description('Organize files in the specified directory')
.argument('<directory>', 'Directory to organize')
.option('-d, --dry-run', 'Preview changes without applying them')
.option('-r, --recursive', 'Include subdirectories')
.option('-c, --config <path>', 'Custom config file path')
.option('--no-cache', 'Bypass cache and force fresh AI analysis')
.action(organize_1.organize);
program
.command('preview')
.description('Preview how files would be organized')
.argument('<directory>', 'Directory to preview')
.option('-r, --recursive', 'Include subdirectories')
.option('-c, --config <path>', 'Custom config file path')
.option('--no-cache', 'Bypass cache and force fresh AI analysis')
.action(preview_1.preview);
program
.command('interactive')
.description('Conversational AI organizer that analyzes, asks questions, then organizes autonomously')
.argument('<directory>', 'Directory to organize with AI conversation')
.option('-c, --config <path>', 'Custom config file path')
.option('-d, --dry-run', 'Simulate organization without moving files')
.option('--no-cache', 'Bypass cache and force fresh AI analysis')
.action(interactive_organize_1.interactiveOrganize);
program
.command('cache')
.description('Manage suggestion cache')
.argument('<action>', 'Cache action: clear, clean, stats')
.option('-d, --directory <path>', 'Specific directory for cache operations')
.action(cache_1.cache);
program.parse();
//# sourceMappingURL=index.js.map