Skip to content

This script will help you to generate source files in your git repository automatically.

Notifications You must be signed in to change notification settings

rise-lab-skku/src-generate-script

Repository files navigation

README

Introduction

Creating new source files, writing all the same things everytime and placing the files in the right place makes you tired. This script will help you to generate new sources automatically. This script will generate following files.

  1. c++ header file
  2. c++ source file
  3. c++ gtest source file
  4. c++ gtest main source file for each module

Install

  1. Clone this repository into your directory. For example,
git clone https://github.com/rise-lab-skku/src_generate_script.git "${HOME}/.custom_tools/psrcgen"
  1. Make alias in your shell initializing script. For example,
echo "alias psrcgen=\"source ${HOME}/.custom_tools/psrcgen/psrcgen.sh\"" >> ${HOME}/.zshrc

Usage

  1. Make sure you are using this command in local git repository. Else it will not work.
  2. Simply type the command.
psrcgen your_package_name your_module_name your_file_name

Have Fun!

About

This script will help you to generate source files in your git repository automatically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages