gmx

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

gmx

A Golang based implementation of genmax. This is a code/file generation tool that feeds data into templates. This can be used for scaffolding projects.

Installation

If you have Golang installed using below command.

go install github.com/razaibi/gmx

Alternatively, you can visit the Releases page for platform specific files.

Commands
Command Description
gmx init Create a new project.
gmx run <workflow-name> Run a workflow and generate your files.
Extensions supported in templates

The following methods are supported in the template:

Description Usage
Pluralize {{ "dog" | pluralize }}
Kebab Case {{ "Hello World" | kebabcase }}
Camel case {{ "Hello World" | camelcase }}
Snake case {{ "Hello World" | snakecase }}
Pascale case {{ "hello world" | pascalecase }}
UUID Generation {{ "" | uuid }}
Generate secret in 16 bit - hexadecimal {{ "" | secret }}
Generate secret in 64 bit - hexadecimal {{ "" | secret_complex }}
Read value from env file {{ "MY_CONFIG_KEY" | config: ".env" }}
Join strings to make a file path. {{ "home" | joinpath: ["documents", "file.txt"] }}
Convert first character to lower case. {{ "Hello World" | lowerfirst }}

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