Creating a new package

To create a new console application, run:

$ grill new MyProject
$ cd MyProject
$ grill make
        Make MyProject v0.1.0

       [1/4] ๐Ÿงญ Up to date โœ”
       [2/4] ๐Ÿ” Resolution ready โœ”
       [3/4] ๐Ÿšš Packages on disk โœ”
       [4/4] ๐Ÿ“ฆ Workspace done โœ”
             ๐Ÿ Enjoy your spaghetti!

As the output shows, the new command automatically runs make. Let's see what the package looks like:

$ cd MyProject
$ tree .
.
โ”œโ”€โ”€ Package.toml
โ”œโ”€โ”€ Package.lock
โ”œโ”€โ”€ BeefSpace.toml
โ”œโ”€โ”€ BeefProj.toml
โ””โ”€โ”€ src
    โ””โ”€โ”€ Program.bf

Package.toml is the package manifest. Here you can specify properties about your package, such as name, version and dependencies. The dependencies table is not included in newly created manifests, but can be added like this:

[Package]
Name = "MyProject"
Version = "0.1.0"
Description = ""

[Dependencies]
Lib = "1.2.3"

Package.lock is generated by Grill and should not be edited manually.

The other files make up a Beef workspace that can be opened and debugged in the IDE.

Last updated