Automatically generates a project template of the specified language/technology.
In this root directory, compile the project with the make command:
$ makeThen, install it (make it useable from anywhere as a command):
$ sudo make installIf you wish to change the installation locations and/or the command name, modify the PREFIX and TARGET variables in Makefile.
Finally, to add auto-completion to the aqua-template command, run the bash script:
$ source ./scripts/add_completion.shor, simply:
$ . ./scripts/add_completion.shThis tool can be called with some command line arguments as:
For generating a project, simply type:
$ aqua-templateYou'll be asked for the project name and its language/technology.
Alternatively, you can pass those info by arguments:
$ aqua-template -n <project-name> -l <language>or
$ aqua-template --name=<project-name> --language=<language>Example:
$ aqua-template -n "Hello World Project" --language=cppIn order to display help about the tool and all arguments type:
$ aqua-template -hor
$ aqua-template --helpTo display all template languages/technologies available for generation type:
$ aqua-template -dor
$ aqua-template --displayIn order to customize or add templates, navigate into the template's save path: /usr/local/etc/aqua-template/templates
To customize a template, simply modify the base project of the language/technology in the save path.
Simply add your language/technology template root directory to the save path. Then, when you use the command aqua-template, the added template will be available for generation.