Skip to content

sousav/TemplateProject

Repository files navigation

Welcome to TemplateProject!

The simple multi-language project creator wizard

TemplateProject is a C++ executable designed to load any project creator as a dynamic library.

How to build

Follow these step in order to build the TemplateProject executable and a first project creator library.

git clone https://github.com/sousav/TemplateProject.git
cd TemplateProject
mkdir build && cd build
cmake .. && make TemplateProject CppConsole
./TemplateProject -h

It should output:

Usage:
    -h, --help
        Shows this help message.

    -n, --name
        [requiered] Specify the project name.

    -t, --type
        [requiered] Specify the project type.

    -p, --path
                    Specify the path where the project must be created.
	default: "./name"

    -l, --list
                    List all project type possibilities.

How to install

After running

make install

you should be able to run

TemplateProject -h


All installed files can be checked with

ls -LR /usr/local/bin/TemplateProject*

which should ouput the following

/usr/local/bin/TemplateProject

/usr/local/bin/TemplateProjectCreator:
Creators        TemplateProject

/usr/local/bin/TemplateProjectCreator/Creators:
libCppConsole.so

How to use

required

You can see that there is two required parameters:

--name=YourProjectName --type=TheCreatorNeeded


You can get the list of all loaded project creator with

TemplateProject --list

It should output

2018-04-22 19:01:32.559  MainClass    INFO Possible project type:
2018-04-22 19:01:32.559  MainClass    INFO CppConsole
2018-04-22 19:01:32.559  MainClass    INFO CppLibrary
2018-04-22 19:01:32.559  MainClass    INFO CppSharedLibrary
2018-04-22 19:01:32.559  MainClass    INFO ProjectCreator

This means the TemplateProject executable found the library CppConsole. Therefore you can use

--type=CppConole

in order to create a C++ console project.

option

There is also a third parameter

--path=Your/Project/Path


If not specified, your project will be create using the following path

/your/pwd/YourProjectName


WARNING: If using an existing directory, it must be empty. Otherwise, it will be created.

Project creation

In order to create a C++ console project, named TestProject

TemplateProject --name TestProject --type CppConsole


In order to create a C++ console project, named TestProject in your working directory

TemplateProject --name TestProject --type CppConsole --path=.

Create your ProjectCreator

ProjectCreator readme

Used library

  • argagg C++ command line argument/option parser.
  • LoggerCpp A simple, elegant and efficient C++ logger library.
  • embed-resource Embed binary files and resources.

Contact Information

All feedback greatly appreciated.

Releases

No releases published

Packages

No packages published