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