Installing Odin
Setting up odin is already covered in detail. I will jump straight into code. If everything went well, you will have odin command available.
❯ odin
odin is a tool for managing Odin source code.
Usage:
odin command [arguments]
Commands:
build Compiles directory of .odin files, as an executable.
One must contain the program's entry point, all must be in the same package.
run Same as 'build', but also then runs the newly compiled executable.
bundle Bundles a directory in a specific layout for that platform.
check Parses and type checks a directory of .odin files.
strip-semicolon Parses, type checks, and removes unneeded semicolons from the entire program.
test Builds and runs procedures with the attribute @(test) in the initial package.
doc Generates documentation from a directory of .odin files.
version Prints version.
report Prints information useful to reporting a bug.
root Prints the root path where Odin looks for the builtin collections.
For further details on a command, invoke command help:
e.g. `odin build -help` or `odin help build`
Exercise
Explore the odin command. Try running the help for each subcommand. For example:
odin check --help
How do you check the style of your odin code?