Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/commands/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ interface ExportOptions {

export const exportCommand = new Command('export')
.description('Export agent to other formats')
.requiredOption('-f, --format <format>', 'Export format (system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, gemini)')
.requiredOption('-f, --format <format>', 'Export format (system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, codex)')
.requiredOption('-f, --format <format>', 'Export format (system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, gemini, codex)')
.option('-d, --dir <dir>', 'Agent directory', '.')
.option('-o, --output <output>', 'Output file path')
.action(async (options: ExportOptions) => {
Expand Down Expand Up @@ -75,12 +74,12 @@ export const exportCommand = new Command('export')
case 'gemini':
result = exportToGeminiString(dir);
break;
case 'codex':
result = exportToCodexString(dir);
break;
default:
error(`Unknown format: ${options.format}`);
info('Supported formats: system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, gemini');
case 'codex':
result = exportToCodexString(dir);
info('Supported formats: system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, codex');
info('Supported formats: system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, gemini, codex');
process.exit(1);
}

Expand Down
11 changes: 5 additions & 6 deletions src/commands/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,7 @@ function parseSections(markdown: string): [string, string][] {

export const importCommand = new Command('import')
.description('Import from other agent formats')
.requiredOption('--from <format>', 'Source format (claude, cursor, crewai, opencode, gemini)')
.requiredOption('--from <format>', 'Source format (claude, cursor, crewai, opencode, codex)')
.requiredOption('--from <format>', 'Source format (claude, cursor, crewai, opencode, gemini, codex)')
.argument('<path>', 'Source file or directory path')
.option('-d, --dir <dir>', 'Target directory', '.')
.action((sourcePath: string, options: ImportOptions) => {
Expand All @@ -549,12 +548,12 @@ export const importCommand = new Command('import')
case 'gemini':
importFromGemini(sourcePath, targetDir);
break;
case 'codex':
importFromCodex(sourcePath, targetDir);
break;
default:
error(`Unknown format: ${options.from}`);
info('Supported formats: claude, cursor, crewai, opencode, gemini');
case 'codex':
importFromCodex(sourcePath, targetDir);
info('Supported formats: claude, cursor, crewai, opencode, codex');
info('Supported formats: claude, cursor, crewai, opencode, gemini, codex');
process.exit(1);
}

Expand Down