The golo new
command can create new Golo project(s):
$ golo new Foo
The command creates a new Golo module named Foo
in a main.golo
file with a simple function
named main
that takes an argument for the JVM program arguments.
By default we create a new free-form project but you can specify the type of project with the
--type
command argument. Three types of projects are currently available:
As an example if you want to create a Maven-driven project, just add --type maven
:
$ golo new Foo --type maven
By default we create the project directory where the golo
command is run. If you need to create
your project directory elsewhere you can use the --path
command argument:
$ golo new Bar --path /opt/golo
This creates the project directory named Bar
in /opt/golo
.