pixeli
Version:
A lightweight command-line tool for merging multiple images into customizable grid layouts.
24 lines (18 loc) • 503 B
JavaScript
import { Command } from 'commander';
import mergeCommand from '../commands/merge.js';
import { handleError } from '../lib/helpers/utils.js';
const program = new Command();
// Define program
program
.name('pixeli')
.description('A lightweight command-line tool for merging multiple images into customizable grid layouts.')
.version('1.0.0');
// Add subcommands
program.addCommand(mergeCommand);
// Parse arguments
try {
program.parse();
} catch (e) {
handleError(e);
}