bcdock v0.5.0
bcdock v0.5.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.5.0
Or download an archive below and put the bcdock binary on PATH.
Changes in this release
Fixed
- A failed environment stops a
--waitat once, with the reason, and exits1. The
API reports a failure as statuserror(orfailed-debug); the CLI waited for
failed, which the API never sends. Soenv create --waitandenv resume --waiton a
failed environment ran to the full timeout (30 minutes) and printed
timed out (current status: error)without saying why. They now stop at the first poll
that sees the failure, print the environment's error message, and exit1.
env hibernate --waitandenv delete --waitdo the same; a delete that ends in
erroris no longer reported as a success. - A refused create says why and what to do.
env createwith a short version
(--version 27) printed onlyerror: invalid_input; the API's sentence ("No BC artifact
for 27 ... Run 'bcdock artifacts list ...'") was dropped. Any error in that shape now
prints its message. - A version with no ready image says so. The API refuses it with
request_version_requiredand no message, and the CLI printed that code and nothing
else. It now names the version and the region and says to pick from
bcdock artifacts list --region <region> --fast-only, or to runbcdock env create
with no version for the picker. With-o jsontheerrorcode is unchanged. - Confirming a platform upgrade on resume gives the CLI command. The API's message
said "Resubmit with targetVersion"; the CLI now ends it with
bcdock env resume <env> --version <version> --wait.
Changed
env waitexits1, not124, when the environment fails. Old: an environment
that reached a failure status you did not ask for was documented as exit124, and in
practice the wait ran to--timeoutand then exited124. New: it exits1at once,
with the environment's error message.124still means the wait gave up:--timeout
elapsed, or the environment settled in another status you did not ask for (such as
hibernated). A wait that asks for--status failednow exits1with the reason too,
since the API never reportsfailed. To treat a failure as a success, ask for
--status error.- Help text and docs name the real statuses:
errorandfailed-debug, notfailed. - Help examples and the
--versionflag text use full versions (or<version>from
bcdock artifacts list --region <r> --fast-only) instead of25.5, which the API
refuses. Thehelptopics list theerrorstatus and give resume as ~7-15 minutes.
Full changelog: CHANGELOG.md
Report issues: support@bcdock.io · Security: see SECURITY.md