You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
dancheg97 18974cba21
continuous-integration/drone/push Build is passing Details
fixed pw wrap error
2 weeks ago
cmd build fix 3 weeks ago
img removed unused pic 3 weeks ago
templates fixed err output, added file for dockerized mail server 3 weeks ago
utils fixed pw wrap error 2 weeks ago
.drone.yml fixed CI to push to proper branch 3 weeks ago
.gitignore changed test image 4 weeks ago
.golangci.yml added readme template 4 weeks ago
Dockerfile corrected dockerized version to weight way less 4 weeks ago
LICENSE changed repo link 2 months ago
Makefile fixed all links for references 1 month ago
PKGBUILD fixed all links for references 1 month ago
README.md added readme template 4 weeks ago
go.mod added svg resizer for icon generation 1 month ago
go.sum added svg resizer for icon generation 1 month ago
logo.png changed logo 4 weeks ago
main.go fixed all links for references 1 month ago

README.md

Template generation tools

Generic badge Generic badge Generic badge Generic badge Generic badge Build Status

CLI Tool for generating different project modules for templating complex systems with ease. Dockerized version also provides set of tools for code generation and linting.


Options:

To get full list of actual features run:

gen-tools -h

🧰 Options you can specify under 'gen' command:

  • drone - includes drone.yml template for project CI-CD
  • pkgbuild - arch format PKGBUILD for packaging to AUR
  • readme - project independent readme template with logo and some badges

📃 Available licenses:

  • license-gpl - GNU General Public License is a series of widely used free software licenses that guarantee end users the four freedoms to run, study, share, and modify the software
  • license-mit - permissive free software license originating at the Massachusetts Institute of Technology
  • license-apache - permissive free software license written by the Apache Software Foundation

🐳 Compose file options:

  • service-nginx - adds nginx to your compose file, and generates template of config in directory (reuses certificates generated by lego)
  • service-postgres - adds postgres to compose file, and goose tool for migrations aswell
  • service-redis - adds redis to compose
  • service-nats - adds single nats node to compose, and nats-ui for visualization
  • service-gitea - adds gitea with some predefined parameters and configuartion files, additional themes, description, logo
  • service-drone - adds drone server and runner to compose, with predifined parameters to connect to gitea
  • service-pacman - adds self-hosted pacman repository for arch packages
  • service-pocketbase - adds pocketbase template to compose (self-hosted real-time backend)
  • service-mkdocs - adds mkdocs with theme, custom css and some preconfigured stuff
  • service-kuma - adds kuma, for tracking and visualizing services stability
  • service-dozzle - adds dozzle, for for viewing services logs

🐭 Go code options:

  • go-cli - includes cobra and viper
  • go-lint - includes golanglint-ci linter for go code
  • go-grpc - includes proto and buf files for generation
  • go-docker - includes 2 stage Dockerfile and compose for ease of development
  • go-pg - includes pgx module in porstgres, sqlc for generation and goose for migrations
  • go-redis - includes redis template
  • go-nats - includes consumer and producer nats template

Installation:

  • docker
docker pull dancheg97.ru/dancheg97/gen-tools:latest
  • go
go install dancheg97.ru/dancheg97/gen-tools@latest
  • yay
yay -Sy gen-tools

Examples:

gen-tools gen readme license-gpl

gen-tools go --repo myrepo.com/me/tool

gen-tools infr --name Nice --domain nice.org --user admin --pass SeCReT --email he@he.org