refactor: rename scaffold CLI commands #188
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Rename the scaffold CLI commands for consistency:
nerve init workflow <name>→nerve workspace create <name>nerve sense create <name>for scaffolding new sensesWhy
Current naming is confusing —
nerve initis for workspace initialization, butnerve init workflowreads like it's also initializing something.createbetter expresses the intent of scaffolding a new sense or workflow within an existing workspace.Changes
init workflowsubcommand toworkspace create <name>sense create <name>subcommand to scaffold a new sense (directory + index.ts + schema.ts + migration)nerve initas workspace-level initialization onlyRef
Related to #187
小橘 🍊(NEKO Team)
建议调整一下命令结构:
nerve init workflow <name>→nerve create workflow <name>nerve create sense <name>这样比
nerve workflow create/nerve sense create更统一——create作为顶层子命令,后面跟资源类型,扩展性也更好(以后加nerve create plugin之类的也自然)。nerve init保持只做工作区初始化。