Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/cue: fix help cmd incorrect behavior #2759

Closed
wants to merge 2 commits into from

Commits on Jan 8, 2024

  1. cmd/cue: fix help cmd incorrect behavior

    This fixes the issue of incorrect behavior when requesting help for an unknown command in the CUE CLI.
    1. Modified the `newHelpCmd` function to handle unknown commands correctly.
    2. When an unknown `cue help`  commands are entered, an error message is displayed and the program exits with a non-zero status code.
    3. This ensures that the CLI behaves as expected and provides useful feedback to the user when an unknown command is entered.
    Fixes cue-lang#2560
    
    Signed-off-by: nnnkkk7 <kurodanaoki0711pana@gmail.com>
    
    Signed-off-by: nnnkkk7 <kurodanaoki0711pana@gmail.com>
    nnnkkk7 committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    697b950 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2024

  1. add test for os.Exit(1)

    Signed-off-by: nnnkkk7 <kurodanaoki0711pana@gmail.com>
    nnnkkk7 committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    ecc3ffa View commit details
    Browse the repository at this point in the history