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.
continuous-integration/drone/push Build is passing
Details
|
2 weeks ago | |
---|---|---|
cmd | 3 weeks ago | |
img | 3 weeks ago | |
templates | 3 weeks ago | |
utils | 2 weeks ago | |
.drone.yml | 3 weeks ago | |
.gitignore | 4 weeks ago | |
.golangci.yml | 4 weeks ago | |
Dockerfile | 4 weeks ago | |
LICENSE | 2 months ago | |
Makefile | 1 month ago | |
PKGBUILD | 1 month ago | |
README.md | 4 weeks ago | |
go.mod | 1 month ago | |
go.sum | 1 month ago | |
logo.png | 4 weeks ago | |
main.go | 1 month ago |
README.md
Template generation tools
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