Skip to content
Merged
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"build": "bun build src/cli.ts --target=node --outfile=dist/cli.js && bun run build:types && cp -r src/templates dist/ && chmod +x ./dist/cli.js",
"build:types": "tsc --emitDeclarationOnly",
"init": "bun run src/cli.ts init",
"compile": "bun run src/cli.ts compile",
"preview": "bun run src/cli.ts preview",
"sync": "bun run src/cli.ts sync",
"plan": "bun run src/cli.ts plan",
"prepublishOnly": "bun run build",
"test": "bun test",
"typecheck": "tsc --noEmit"
Expand Down
10 changes: 5 additions & 5 deletions src/commands/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { DEFAULT_AI_DOCS_DIR, DEFAULT_RULES_DIR } from '../constants';

export const showHelp = (): void => {
console.log(`
ai-doc-sync
ai-docs-sync

Usage:
npx ai-doc-sync [command]
npx ai-docs-sync [command]

Commands:
(default) - Sync rules from ${DEFAULT_AI_DOCS_DIR}/${DEFAULT_RULES_DIR} to output files
Expand All @@ -14,8 +14,8 @@ Commands:
help - Show this help message

Examples:
npx ai-doc-sync # Sync rules (default behavior)
npx ai-doc-sync plan # Preview changes without writing
npx ai-doc-sync init # Initialize a new project
npx ai-docs-sync # Sync rules (default behavior)
npx ai-docs-sync plan # Preview changes without writing
npx ai-docs-sync init # Initialize a new project
`);
};
4 changes: 2 additions & 2 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ export const initProject = (): void => {
console.log('Next steps:');
console.log(`1. Edit rules: modify files in the ${DEFAULT_AI_DOCS_DIR}/${DEFAULT_RULES_DIR}/ directory`);
console.log(`2. Edit ignore patterns: modify the ${DEFAULT_AI_DOCS_DIR}/ignore file`);
console.log('3. Compile: npx ai-docs-cli compile');
console.log('4. Preview: npx ai-docs-cli preview');
console.log('3. Sync: ai-docs-sync');
console.log('4. Preview: ai-docs-sync plan');
};