Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Unreleased

### Build tool

- The help text displayed by `gleam dev --help`, `gleam test --help`, and
`gleam run --help` has been improved: now each one states which function it's
going to run.
([Giacomo Cavalieri](https://github.com/giacomocavalieri))

### Bug fixes

- Fixed a bug where the "Extract function" code action would not properly
Expand Down
6 changes: 6 additions & 0 deletions compiler-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ enum Command {
Shell,

/// Run the project
///
/// This command runs the `main` function defined in `src/<PROJECT_NAME>.gleam`
#[command(trailing_var_arg = true)]
Run {
#[arg(short, long, ignore_case = true, help = target_doc())]
Expand All @@ -235,6 +237,8 @@ enum Command {
},

/// Run the project tests
///
/// This command runs the `main` function defined in `test/<PROJECT_NAME>_test.gleam`.
#[command(trailing_var_arg = true)]
Test {
#[arg(short, long, ignore_case = true, help = target_doc())]
Expand All @@ -247,6 +251,8 @@ enum Command {
},

/// Run the project development entrypoint
///
/// This command runs the `main` function defined in `dev/<PROJECT_NAME>_dev.gleam`
#[command(trailing_var_arg = true)]
Dev {
#[arg(short, long, ignore_case = true, help = target_doc())]
Expand Down
Loading