Skip to content

bin/heroics-generate returns success status code even when it fails to generate a client #99

@schneems

Description

@schneems

I see that the command still reports as successful even when it's not:

$ bin/heroics-generate -h "Content-Type: application/json"
Usage: heroics-generate module_name schema_filepath url
       heroics-generate configuration-file-path.rb
# Params only allowed when using the first form:
    -h, --help                       Display this screen
    -H, --header [HEADER]            Include header with all requests
    -c, --cache-dir [PATH]           Content cache directory (~ is automatically expanded)
$ echo $?
0

This exit code should be non-zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions