Closed Anonyfox closed 6 years ago
Document and implement a proper CLI syntax for model generation. Ideally something like:
seagull add model Todo text:string done:boolean
Which should result in the generated file (including default values):
import { field, Model } from '@seagull-js/seagull' export default class Todo extends Model { @field done: boolean = false @field text: string = '' }
Bonus: it must not be possible to scaffold reserved properties via CLI. This means, deny if the user wants to generate id, createdAt, ... .
id
createdAt
automatic field generation implemented with all-new code generator
Document and implement a proper CLI syntax for model generation. Ideally something like:
seagull add model Todo text:string done:boolean
Which should result in the generated file (including default values):
Bonus: it must not be possible to scaffold reserved properties via CLI. This means, deny if the user wants to generate
id
,createdAt
, ... .