UNPKG

@nakedved/ano

Version:

Claude Code plugin for collaborative annotation and review

57 lines (56 loc) 2.02 kB
#!/usr/bin/env node /** * Ano CLI * * Command-line interface for managing annotations. * * Usage: * ano annotate <file>:<line> "comment" Add an annotation * ano list [file] List annotations * ano resolve <id> Mark as resolved * ano approve <file> Approve a file */ import { Command } from 'commander'; import { annotateCommand } from './commands/annotate.js'; import { listCommand } from './commands/list.js'; import { resolveCommand } from './commands/resolve.js'; import { approveCommand } from './commands/approve.js'; import { checkCommand } from './commands/check.js'; import { lgtmCommand, shipitCommand, nitCommand, blockCommand, questionCommand, } from './commands/quick.js'; import { teamCommand } from './commands/team.js'; import { replyCommand, deleteCommand, syncCommand, exportCommand, importCommand } from './commands/manage.js'; import { serveCommand } from './commands/serve.js'; import { diffCommand } from './commands/diff.js'; // Create the main program const program = new Command(); program .name('ano') .description('Collaborative annotation and review for Claude Code') .version('0.1.0'); // Register subcommands program.addCommand(annotateCommand); program.addCommand(listCommand); program.addCommand(resolveCommand); program.addCommand(approveCommand); program.addCommand(checkCommand); // Quick annotation shortcuts program.addCommand(lgtmCommand); program.addCommand(shipitCommand); program.addCommand(nitCommand); program.addCommand(blockCommand); program.addCommand(questionCommand); // Team management program.addCommand(teamCommand); // Annotation management program.addCommand(replyCommand); program.addCommand(deleteCommand); program.addCommand(syncCommand); // Import/Export program.addCommand(exportCommand); program.addCommand(importCommand); // Version tracking program.addCommand(diffCommand); // Web viewer program.addCommand(serveCommand); // Parse arguments and run program.parse();