Alt description missing in image

add-form

npm run add:form -- --args <workspacePath> <formSchema> <formHookName>
npx turbo gen add-form --args <workspacePath> <formSchema> <formHookName>
        • add-form.ts

Prompt Arguments

ArgumentTypeQuestion / Description
workspacePathautocompleteWhere would you like to add this form?
=> e.g. features/@app-core
formSchemaautocompleteWhich zod / input schema should we use?
=> e.g. HealthCheckInput / new
formHookNametextWhat should the form hook be named?
=> string (e.g. useSomeSchemaState)

Resulting File Changes

/{workspacePath}/ # <- e.g. 'features/@app-core/' or 'packages/some-package/'
 └── hooks/
     └── {formHookName}.ts ❇️ # <- Will integrate with chosen / new schema