UNPKG

@adocasts.com/dto

Version:

Easily make and generate DTOs from Lucid Models

1 lines 1.8 kB
{"commands":[{"commandName":"generate:dtos","description":"Reads, converts, and generates DTOs from all Lucid Models","help":"","namespace":"generate","aliases":[],"flags":[{"name":"validator","flagName":"validator","required":false,"type":"boolean","description":"Generate validators alongside DTOs","alias":"v"}],"args":[],"options":{"strict":true},"filePath":"generate_dtos.js"},{"commandName":"generate:validators","description":"Reads, converts, and generates vine validators from all Lucid Models","help":"","namespace":"generate","aliases":[],"flags":[],"args":[],"options":{"strict":true},"filePath":"generate_validators.js"},{"commandName":"make:dto","description":"Create a new dto","help":"","namespace":"make","aliases":[],"flags":[{"name":"model","flagName":"model","required":false,"type":"string","description":"Specify a model to build the DTO from","alias":"m"},{"name":"validator","flagName":"validator","required":false,"type":"boolean","description":"Generate a validator alongside the DTO","alias":"v"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the DTO. If a model matches the provided name, it'll be used to generate the DTO","type":"string"}],"options":{"strict":true},"filePath":"make_dto.js"},{"commandName":"make:validators","description":"Create a new vine validator","help":"","namespace":"make","aliases":[],"flags":[{"name":"model","flagName":"model","required":false,"type":"string","description":"Specify a model to build the validator from","alias":"m"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the validator. If a model matches the provided name, it'll be used to generate the validator","type":"string"}],"options":{"strict":true},"filePath":"make_validator.js"}],"version":1}