Skip to content

Recipe comment display is truncated to only the last line #3060

@luisschwab

Description

@luisschwab

When a recipe has a multi-line comment, the output when running just only shows the last line. For example:

bdk % just
Available recipes:
    build                            # Build the project [alias: b]
    check                            # Check code: formatting, compilation, linting, and commit signature [alias: c]
    fmt                              # Format all code [alias: f]
    pre-push                         # Run pre-push suite: format, check, and test [alias: p]
    test                             # Run all tests for all crates with all features enabled [alias: t]
    verify-standalone crate *args="" # breaking changes from other workspace crates [alias: vs]
    verify-standalone-all *args=""   # Verify all publishable crates can be built standalone [alias: vsa]
# Verify that a crate can be built standalone without workspace dependencies
# This ensures the crate is publishable and doesn't accidentally depend on
# breaking changes from other workspace crates
verify-standalone crate *args="":
    #!/usr/bin/env bash
    set -euo pipefail
    ...

Would be nice to make it always output the first line, or the first line given we have an empty line separating the first line and the rest, as such:

# Verify that a crate can be built standalone without workspace dependencies
#
# This ensures the crate is publishable and doesn't accidentally depend on
# breaking changes from other workspace crates
verify-standalone crate *args="":
    #!/usr/bin/env bash
    set -euo pipefail
    ...

Which should output:

bdk % just
Available recipes:
    build                            # Build the project [alias: b]
    check                            # Check code: formatting, compilation, linting, and commit signature [alias: c]
    fmt                              # Format all code [alias: f]
    pre-push                         # Run pre-push suite: format, check, and test [alias: p]
    test                             # Run all tests for all crates with all features enabled [alias: t]
    verify-standalone crate *args="" # Verify that a crate can be built standalone without workspace dependencies [alias: vs]
    verify-standalone-all *args=""   # Verify all publishable crates can be built standalone [alias: vsa]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions