config.yml 1.4 KB

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