gen-tools

command module
v0.0.0-...-18974cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL