semi implemented and features implemented save checkpoint

This commit is contained in:
master
2026-02-08 18:00:49 +02:00
parent 04360dff63
commit 1bf6bbf395
20895 changed files with 716795 additions and 64 deletions

View File

@@ -0,0 +1,30 @@
# Image Inspect CLI Command
## Module
Cli
## Status
IMPLEMENTED
## Description
CLI command `stella image inspect` for querying OCI image metadata including manifest type, architecture platforms, layer digests, annotations, and SBOM/attestation referrers in table or JSON output.
## Implementation Details
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/ImageCommandGroup.cs` -- `ImageCommandGroup` for `stella image` commands
- **Command Handlers**: `src/Cli/StellaOps.Cli/Commands/CommandHandlers.Image.cs` -- image command handlers
- **OCI Registry Client**: `src/Cli/StellaOps.Cli/Services/OciRegistryClient.cs` / `IOciRegistryClient.cs` -- OCI registry operations
- **OCI Reference Parser**: `src/Cli/StellaOps.Cli/Services/OciImageReferenceParser.cs` -- parses image references
- **Tests**: `src/Cli/__Tests/StellaOps.Cli.Tests/GoldenOutput/ImageInspectGoldenOutputTests.cs`
- **Commands**:
- `stella image inspect <image>` -- inspect OCI image metadata. Options: `--format table|json`, `--verbose`
- Shows: manifest type, architecture platforms, layer digests, annotations, referrers (SBOMs, attestations)
## E2E Test Plan
- [ ] Run `stella image inspect myregistry/app:v1.0` and verify metadata displayed
- [ ] Verify manifest type shown (OCI, Docker)
- [ ] Verify architecture platforms listed (linux/amd64, linux/arm64, etc.)
- [ ] Verify layer digests displayed with sizes
- [ ] Verify annotations shown
- [ ] Verify SBOM/attestation referrers listed
- [ ] Run with `--format json` and verify structured JSON output
- [ ] Verify golden output tests pass