Skip to content

bcdock v0.4.0

Choose a tag to compare

@github-actions github-actions released this 25 Sep 23:28
· 1 commit to main since this release

bcdock v0.4.0

Beta CLI. Surface and JSON shapes may change between releases - see CHANGELOG.md for what moved.

Install:

go install github.com/bcdock/cli/cmd/bcdock@v0.4.0

Or download an archive below and put the bcdock binary on PATH.

Changes in this release

Added

  • With -o json, a failed command writes one JSON object to stderr instead of
    the error: ... line, so a script or an agent can act on the failure without
    parsing text:

    {"error":"invalid_state","message":"invalid_state: Only running environments can be hibernated (current status: hibernated).","exitCode":1,"status":400}
    

    error is the API's own code when it sent one (not_found, invalid_state,
    invalid_input, ...), otherwise one of a small documented set (timeout,
    network, cli_error, and the API's status names). message is the text the
    line would have shown, and status appears only for an API error. The exit code
    is unchanged, stdout stays empty, and table and CSV output keep the text line.
    See the exit-codes page for the full list.


Full changelog: CHANGELOG.md
Report issues: support@bcdock.io · Security: see SECURITY.md