Skip to content

RanguraGIT/genut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genut

Genut is a tool designed to simplify development, security, and operations tasks for the DG project.

Overview

This tool provides functionalities for generating automatically generated mocks using mockgen and wrapping files as needed. It is built using the Go programming language.

Installation

To install genut, you need to have Go installed on your machine. You can then use the following command:

go install github.com/RanguraGIT/genut@latest

Usage

The tool comes with a command-line interface to execute its functionalities.

Generate Command

The generate command allows you to trigger various code generation actions, such as generating mocks and wrappers.

genut [command/flags]

Available genut flags:

  • --config or -c
    Generate config file to root project
  • --version or -v
    Print the version number of Genut

Available genut command:

  • create "project name"
    Generate new project
  • install "service name"
    Add new service to project
  • mocks
    Generate mocks from available interface
  • pre-commit
    Installing pre-commit configuration

Example:

# For generating genut config to root project
genut --config
# For Generate mocks from available interface
genut mocks
# For Installing pre-commit configuration
genut pre-commit

Contributing

Contributions are welcome! If you have suggestions, bug reports, or feature requests, please open an issue or a pull request in this repository.

License

This project is licensed under the MIT License.

About

Genut is a tool designed to simplify devsecops tasks for the DG project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages