fix(#25): rename tasks.js to tasks.cjs for CommonJS compatibility
This commit is contained in:
@@ -295,7 +295,7 @@ function showHelp() {
|
||||
Mosaic Tasks CLI
|
||||
|
||||
Usage:
|
||||
node tasks.js <command> [options]
|
||||
node tasks.cjs <command> [options]
|
||||
|
||||
Commands:
|
||||
create Create a new task
|
||||
@@ -346,22 +346,22 @@ Environment Variables:
|
||||
|
||||
Examples:
|
||||
# Create a task
|
||||
node tasks.js create --title "Review PR #123" --priority HIGH
|
||||
node tasks.cjs create --title "Review PR #123" --priority HIGH
|
||||
|
||||
# List high priority tasks
|
||||
node tasks.js list --priority HIGH
|
||||
node tasks.cjs list --priority HIGH
|
||||
|
||||
# List overdue tasks
|
||||
node tasks.js list --overdue
|
||||
node tasks.cjs list --overdue
|
||||
|
||||
# Get task details
|
||||
node tasks.js get abc-123-def-456
|
||||
node tasks.cjs get abc-123-def-456
|
||||
|
||||
# Mark task as completed
|
||||
node tasks.js update abc-123-def-456 --status COMPLETED
|
||||
node tasks.cjs update abc-123-def-456 --status COMPLETED
|
||||
|
||||
# Delete a task
|
||||
node tasks.js delete abc-123-def-456
|
||||
node tasks.cjs delete abc-123-def-456
|
||||
`);
|
||||
}
|
||||
|
||||
@@ -401,7 +401,7 @@ async function main() {
|
||||
|
||||
default:
|
||||
console.error(`Unknown command: ${command}`);
|
||||
console.error('Run "node tasks.js help" for usage information');
|
||||
console.error('Run "node tasks.cjs help" for usage information');
|
||||
process.exit(1);
|
||||
}
|
||||
} catch (error) {
|
||||
Reference in New Issue
Block a user