Parsed command-line arguments
Available commands to execute
const gitCommands: Command[] = [{
name: 'commit',
description: '📝 Create a commit',
options: [{
name: 'message',
description: 'Commit message',
defaultValue: 'Update'
}],
action: (args) => {
console.log(`📝 Committing with message: ${args.message}`);
}
}];
// Parse and execute
const args = parseCliArgs(['commit', '--message', 'Fix bugs']);
executeCommand(args, gitCommands);
Executes a command based on the parsed arguments.
This function: