Commit Graph
4 Commits
Author SHA1 Message Date
Hector Ventura 11de360c11 feat(reset): stop when a selected container publishes no port for the emulator
A selected container that is running without a matching published port has nothing to be found by, and the configured endpoint may be another instance.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-10 21:51:42 -05:00
Hector Ventura c95d2ffb16 Merge remote-tracking branch 'origin/main' into feat/reset
Reset asks the exception for the HTTP status, as the snapshot commands now do.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-10 21:40:50 -05:00
Hector Ventura 9ded9185bd feat(reset): never guess which server to reset
A typed --endpoint is used as given instead of being replaced by a local container's port, and a container the user selected has to be found running: a missing or stopped one resets nothing rather than falling back to the default instance. The confirmation goes through a seam, with tests for every answer.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-10 21:29:35 -05:00
Hector Ventura 024d5d6c23 feat(reset): add floci reset to delete every resource in a running emulator
floci reset (and floci gcp/az/oci reset) calls the emulator's state reset endpoint, so a test run can start clean without restarting the container. It asks for confirmation on a terminal; --yes skips the prompt and is required when there is no terminal. A server without the endpoint (floci-az today) gets a 'not available' message.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-10 21:11:38 -05:00