chore: release 0.2.0

This commit is contained in:
Hector Ventura committed 2026-07-28 21:50:27 -05:00
1 parent 6dc8fc9df4
commit 980904e55a
2 files changed
+12 -10

No files matched your search

+11 -9
View File
@@ -7,20 +7,22 @@ This project uses [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [0.2.0] — 2026-07-28
### Changed
- Internal: the four near-identical product command trees were unified into one `ProductProfile`-parameterized implementation — the `gcp`/`az`/`oci` command classes are now thin subclasses of the root commands, eliminating the copy-drift bug class
- **Snapshot commands are now real API calls in every product tree.** `floci gcp|az|oci snapshot save/load/list/delete` call the product server's `/snapshots` control-plane endpoints and degrade gracefully when the server doesn't support them yet — previously they printed a "not yet available" note and exited 0. `snapshot export`/`import` now exit 1 with an error in all four trees (previously exit 0 with a note on gcp/az/oci); CI scripts that relied on the silent success of stubbed snapshot commands will now see failures. Snapshot error messages point at the product's GitHub issue tracker instead of the maintainer-only TODO.md
- `floci gcp|az|oci logs` gained the `--service` flag and `services` gained `--mode`, matching the AWS tree (they had drifted apart); `version` on the AWS tree now prints the port-auto-detected endpoint in its "not reachable" hint like the other trees
- `services` and `snapshot save/load/list/delete` now auto-detect the endpoint from the running container's port mapping in every tree (like `status`/`wait`/`env` always did), so a container started with `--port <n>` is found without passing `--endpoint`
- Global `--endpoint`/`--container` help text now shows each product's default value
- The AWS tree now brands itself **Floci AWS** in banners, messages, and help text ("Starting Floci AWS container...", "Floci AWS Doctor", "Show Floci AWS container and server status"), matching the Floci GCP / Floci Azure / Floci OCI naming
- Internal: the four near-identical product command trees were unified into one `ProductProfile`-parameterized implementation — the `gcp`/`az`/`oci` command classes are now thin subclasses of the root commands, eliminating the copy-drift bug class ([#16](https://github.com/floci-io/floci-cli/pull/16))
- **Snapshot commands are now real API calls in every product tree.** `floci gcp|az|oci snapshot save/load/list/delete` call the product server's `/snapshots` control-plane endpoints and degrade gracefully when the server doesn't support them yet — previously they printed a "not yet available" note and exited 0. `snapshot export`/`import` now exit 1 with an error in all four trees (previously exit 0 with a note on gcp/az/oci); CI scripts that relied on the silent success of stubbed snapshot commands will now see failures. Snapshot error messages point at the product's GitHub issue tracker instead of the maintainer-only TODO.md ([#16](https://github.com/floci-io/floci-cli/pull/16))
- `floci gcp|az|oci logs` gained the `--service` flag and `services` gained `--mode`, matching the AWS tree (they had drifted apart); `version` on the AWS tree now prints the port-auto-detected endpoint in its "not reachable" hint like the other trees ([#16](https://github.com/floci-io/floci-cli/pull/16))
- `services` and `snapshot save/load/list/delete` now auto-detect the endpoint from the running container's port mapping in every tree (like `status`/`wait`/`env` always did), so a container started with `--port <n>` is found without passing `--endpoint` ([#16](https://github.com/floci-io/floci-cli/pull/16))
- Global `--endpoint`/`--container` help text now shows each product's default value ([#16](https://github.com/floci-io/floci-cli/pull/16))
- The AWS tree now brands itself **Floci AWS** in banners, messages, and help text ("Starting Floci AWS container...", "Floci AWS Doctor", "Show Floci AWS container and server status"), matching the Floci GCP / Floci Azure / Floci OCI naming ([#16](https://github.com/floci-io/floci-cli/pull/16))
### Added
- `floci oci` command group — full lifecycle support for the Floci OCI (Oracle Cloud) emulator (`floci-oci`, default port 4599): `start`, `stop`, `restart`, `status`, `logs`, `wait`, `version`, `services`, `doctor`, `env`, `config`, and stub `snapshot` commands, mirroring the GCP/Azure trees. `floci oci env` exports `OCI_CLI_ENDPOINT`, `FLOCI_OCI_ENDPOINT`, and `TF_VAR_CLIENT_HOST_OVERRIDES` for the OCI CLI, the `ocilocal` wrapper, and the `oracle/oci` Terraform provider. `floci config default-product oci` routes bare commands to the OCI tree
- `floci oci setup` — one-step OCI CLI/SDK client setup: generates a local RSA-2048 API signing key (`~/.oci/floci_key.pem`, with the `OCI_API_KEY` label and a real computed fingerprint) and writes a `[FLOCI]` profile to `~/.oci/config` using the emulator's canonical throwaway tenancy. Idempotent; never modifies existing profiles; `--profile-name` overrides the section name. `floci oci env` additionally exports `OCI_CLI_PROFILE` for whichever profile setup wrote (detected via its `key_file`), so `eval $(floci oci env)` is the only connect step needed; env exports are single-quoted per shell so hostile endpoint values cannot inject commands through `eval`
- `FlociHttpClient` now accepts both health-endpoint `services` shapes: the array of names reported by the AWS/GCP/Azure servers and the `{name: status}` object reported by floci-oci (previously the object shape read as zero services in `status`/`services`/`wait`)
- `floci oci` command group — full lifecycle support for the Floci OCI (Oracle Cloud) emulator (`floci-oci`, default port 4599): `start`, `stop`, `restart`, `status`, `logs`, `wait`, `version`, `services`, `doctor`, `env`, `config`, and stub `snapshot` commands, mirroring the GCP/Azure trees. `floci oci env` exports `OCI_CLI_ENDPOINT`, `FLOCI_OCI_ENDPOINT`, and `TF_VAR_CLIENT_HOST_OVERRIDES` for the OCI CLI, the `ocilocal` wrapper, and the `oracle/oci` Terraform provider. `floci config default-product oci` routes bare commands to the OCI tree ([#15](https://github.com/floci-io/floci-cli/pull/15))
- `floci oci setup` — one-step OCI CLI/SDK client setup: generates a local RSA-2048 API signing key (`~/.oci/floci_key.pem`, with the `OCI_API_KEY` label and a real computed fingerprint) and writes a `[FLOCI]` profile to `~/.oci/config` using the emulator's canonical throwaway tenancy. Idempotent; never modifies existing profiles; `--profile-name` overrides the section name. `floci oci env` additionally exports `OCI_CLI_PROFILE` for whichever profile setup wrote (detected via its `key_file`), so `eval $(floci oci env)` is the only connect step needed; env exports are single-quoted per shell so hostile endpoint values cannot inject commands through `eval` ([#15](https://github.com/floci-io/floci-cli/pull/15))
- `FlociHttpClient` now accepts both health-endpoint `services` shapes: the array of names reported by the AWS/GCP/Azure servers and the `{name: status}` object reported by floci-oci (previously the object shape read as zero services in `status`/`services`/`wait`) ([#15](https://github.com/floci-io/floci-cli/pull/15))
## [0.1.9] — 2026-07-24
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>io.floci</groupId>
<artifactId>floci-cli</artifactId>
<version>0.1.9</version>
<version>0.2.0</version>
<packaging>jar</packaging>
<name>Floci CLI</name>