Commit Graph
3 Commits
Author SHA1 Message Date
Hector Ventura 8ae0a898ed fix(cli): exit 2 for every rejected value, not 1 in some commands
config default-product, config profile (unknown action, missing name, --port out of range), update --version, an invalid snapshot name, an invalid az setup container name and an unusable --persist path returned 1, the code for a command that ran and failed. They now return 2 like every other rejected value. A persist directory that cannot be created is still 1.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-11 09:52:50 -05:00
Hector Ventura 771b353733 fix(doctor): fail -o json on a failed check and name each product in its hints (#52)
* fix(doctor): fail -o json on a failed check and name each product in its hints

doctor -o json now exits 1 when a check fails, as text output does; hints and HTTP errors name the product's own command (floci gcp start, ...) and the port check falls back to the product's default port; a warnings-only run no longer reads as '0 issue(s) found'; an https AWS_ENDPOINT_URL without a port means 443.

* fix(http): name the product's status command when a request times out

Both ways a request can time out now give the same message with the product's own command. The hint tests use their own local endpoints instead of port 9.
2026-10-10 18:45:05 -05:00
Hector Ventura 7b58a38c5a feat(az): configure the az CLI against floci-az with floci az setup (#29) 2026-10-08 21:29:02 -05:00