UNPKG

fig-folder

Version:

A CLI tool to organize configuration files into a fig/ folder with safe mode option

25 lines (20 loc) 599 B
#!/usr/bin/env node import { Command } from 'commander'; import { organize } from '../src/main.js'; const program = new Command(); program .name('fig') .description('Organize configuration files into a fig/ folder') .version('1.0.0'); program .description('Organize configuration files into fig/ directory') .option('--safe', 'Copy files instead of moving/symlinking (completely safe)') .action(async (options) => { try { await organize(options.safe); } catch (error) { console.error('Error:', error.message); process.exit(1); } }); program.parse();