Skip to content

Commit

Permalink
fix command-line-interface wording
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Apr 16, 2024
1 parent b21dc35 commit b14feaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/using-compiler/command-line-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Here are some of the most common compiler commands.
- An initial Git repository with a `.gitignore` file.

2. `glistix build [--target nix]`: Builds your project to `build/dev/<target>`, by default the target specified in your `gleam.toml` unless you specify `--target <target>`.
- None that if no target is specified in your `gleam.toml`, the compiler **will default to `erlang`** to be compatible with existing Gleam projects. As such, make sure to specify `target = "nix"` in your `gleam.toml`.
- Note that, if no target is specified in your `gleam.toml`, the compiler **will default to the `erlang` target** to be compatible with existing Gleam projects. As such, make sure to specify `target = "nix"` in your `gleam.toml`.

3. `glistix run [--target nix]`: Runs your project's main function in the target specified either by `--target` or by `gleam.toml` (or `erlang` by default, for the same reason as before).
- For the Nix target, this will call `nix-instantiate` to evaluate your `packagename.gleam`'s `main` function.
Expand Down

0 comments on commit b14feaf

Please sign in to comment.