The Package Manager

The package manager is the main tool through which one uses Gera, and it's name is gerap.

Packages

A Gera package is simply a collection of Gera source code which can be included by other packages. They can also be built and executed.

To create a new package called test in a directory of that name, run

gerap new test

To set up the current direcory as a new Gera package, run

gerap init

Gera packages mainly consist of a gerap.json file and a src-directory. The gerap.json holds cruicial information about your package and the src-directory contains all Gera source files that belong to this package.

Building & Running

A project can be built using

gerap build
or can be built and then directly executed using
gerap run
The output of a build is always located in the .gerap-directory.

Documentation

gerap info some::thing
can be used to directly find out more about some::thing. This can be useful for when you quickly want to look at the documentation of something without looking at the documentation. The command prints all the information you need directly to the console. This works for the code in your package and all the packages your package depends on.

gerap doc some::package
can be used to generate HTML documentation about the module some::package and all of its submodules, which is also placed into .gerap.


For more information about gerap, its commands and and its environment variables you can visit the Github repository for gerap.