Skip to content
/ og Public

A simple CLI tool to generate files based on your template and payload.

Notifications You must be signed in to change notification settings

0x9n0p/og

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Old Gamers CLI tool

It's a simple tool that you can generate codes. For example, I'm using it to generate CRUD APIs!

How it works?

og will load your template and payload files, then executes the template generator engine with your payload! So you need to provide your template and payload files. It uses text/template package and JSON for the payload file.

For example, create a file named 'user.tmpl' with the following content.

{{.user.name}}

Then, create a file named 'user.json' with the following content.

{
  "user": {
    "name": "Bob"
  }
}

And finally, execute the following command on your terminal so you will see the final generation of the template and the payload.

og user.json user.tmpl

If you want to save the output on a files, you can use the following command.

og user.json user.tmpl > user.txt

Contribution

Feel free to send Pull Requests, fix typos, grammatical mistakes. We appreciate your help!

About

A simple CLI tool to generate files based on your template and payload.

Topics

Resources

Stars

Watchers

Forks

Languages