1234567891011121314151617181920 |
- description: My personal backend/frontend project structure
- vars:
- - {name: binary, default: '{{.projName}}'}
- - {name: author}
- - {name: email}
- - {name: mainpkg, default: '{{.projName|ToLower}}/cmd/{{.binary|ToLower}}', question: 'Main Package'}
- files:
- - {source: 'gomain.go.boiler', target: 'go/src/{{.projName|ToLower}}/cmd/{{.binary|ToLower}}/main.go'}
- generators:
- gofile:
- aliases: [.go]
- description: 'Creates a go file based on template' # Description for --help
- files: # Files or folders to be processed, these files are relative to $PROJROOT/.boiler/template/...
- - {source: 'gofile.go.boiler', target: '{{.curdir}}/{{.name}}'} # Target is processed with template
- vars: # List of variables for unit creation
- - name: 'package' # Var name {{.package}}
- default: '{{.projName}}' # Default value
- flag: 'package, p' # command flags to set this var
- question: 'package name of the new file' # question to be shown on interactive input
- description: 'Package to place on package thing' # description of the var '--help'
|