From 5c0db8f69fa5e3dc9da4e9663bdc63f8658b7612 Mon Sep 17 00:00:00 2001 From: soreavis <263610811+soreavis@users.noreply.github.com> Date: Thu, 19 Nov 2026 05:03:29 +0100 Subject: [PATCH] docs(readme): add env's exit 1 to the exit-code table and fix the snapshot import example (#80) Since #75, env exits 1 when the selected container has no known endpoint: resolvedEndpoint throws and the execution exception handler returns 1. The prose under floci stop says so, but the Exit Codes table still left env's 1 empty. snapshot import reads the tarball from the required --file/-f option and takes no positional argument, so the documented 'floci snapshot import tarball.tar.gz' exits 2 with "Missing required option: '--file='". Signed-off-by: soreavis <263610811+soreavis@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a8b888..95560e2 100644 --- a/README.md +++ b/README.md @@ -936,7 +936,7 @@ floci snapshot save floci snapshot load floci snapshot delete floci snapshot export -f tarball.tar.gz -floci snapshot import tarball.tar.gz +floci snapshot import -f tarball.tar.gz ``` > GCP, Azure, and OCI snapshots (`floci gcp snapshot` / `floci az snapshot` / `floci oci snapshot`) require server-side endpoints not yet implemented in Floci GCP / Floci Azure / Floci OCI. Until then, those commands report the missing API and exit 1. `floci snapshot export|import` (AWS) are also pending server support and exit 1. @@ -1002,7 +1002,7 @@ Where a command's codes carry a specific meaning a script can rely on: | `config validate` | no errors (warnings allowed) | errors found, or the file cannot be read | bad flag | | `config profile ...` | done | not found, already exists, cannot be read, or (for `edit`) no editor is set, the editor failed or the file no longer parses | unknown action, missing or invalid profile name, `--port` out of range | | `config default-product` | saved | the file cannot be written | not `aws`, `gcp`, `az` or `oci` | -| `env` | variables printed | | `--shell` is not supported | +| `env` | variables printed | the selected container has no known endpoint | `--shell` is not supported | | `completion` | script printed | | the shell is not `bash` or `zsh` | | `snapshot ...` | done | failed, or the server has no snapshot API yet | invalid snapshot name |