mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-01 23:30:27 +00:00
introduce scaffold for new models
This commit is contained in:
parent
14315cb88a
commit
4725d9c823
2 changed files with 55 additions and 0 deletions
18
.scaffold/model/scaffold.yaml
Normal file
18
.scaffold/model/scaffold.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
messages:
|
||||
pre: |
|
||||
# Ent Model Generation
|
||||
|
||||
With Boilerplate!
|
||||
post: |
|
||||
Complete!
|
||||
|
||||
questions:
|
||||
- name: "model"
|
||||
prompt:
|
||||
message: "What is the name of the model? (PascalCase)"
|
||||
required: true
|
||||
|
||||
rewrites:
|
||||
- from: 'templates/model.go'
|
||||
to: 'backend/internal/data/ent/schema/{{ lower .Scaffold.model }}.go'
|
Loading…
Add table
Add a link
Reference in a new issue