refactor(init): Fix init command execution and argument handling

Centralizes init command logic within the main CLI structure. The action handler in commands.js now directly calls initializeProject from the init.js module, resolving issues with argument parsing (like -y) and removing the need for the separate bin/task-master-init.js executable. Updates package.json and bin/task-master.js accordingly.
This commit is contained in:
Eyal Toledano
2025-04-10 22:32:08 -04:00
parent 6403e96ef9
commit a86e9affc5
7 changed files with 257 additions and 349 deletions

3
package-lock.json generated
View File

@@ -32,8 +32,7 @@
"bin": {
"task-master": "bin/task-master.js",
"task-master-init": "bin/task-master-init.js",
"task-master-mcp": "mcp-server/server.js",
"task-master-mcp-server": "mcp-server/server.js"
"task-master-mcp": "mcp-server/server.js"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.1",