mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
This commit implements the --replace functionality for the artifact add command, allowing users to replace existing artifacts without having to manually remove them first. Changes made: - Add Replace field to ArtifactAddOptions entity types - Add --replace CLI flag with validation to prevent conflicts with --append - Implement replace logic in ABI backend to remove existing artifacts before adding - Update API handlers and tunnel implementation for podman-remote support - Add comprehensive documentation and examples to man page - Add e2e and system BATS tests for --replace functionality - Fix code formatting in pkg/bindings/artifacts/types_pull_options.go: * Reorder imports with proper spacing * Fix function declaration spacing * Convert spaces to proper tab indentation * Remove extraneous blank lines The --replace option follows the same pattern as other podman replace options like 'podman container create --replace' and 'podman pod create --replace'. It gracefully handles cases where no existing artifact exists (no error thrown). Usage examples: podman artifact add --replace quay.io/myimage/artifact:latest /path/to/file podman artifact add --replace localhost/test/artifact /tmp/newfile.txt Fixes: Implements requested --replace functionality for artifact add command Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> |
||
|---|---|---|
| .. | ||
| idle | ||
| doc.go | ||
| handler_api.go | ||
| handler_logging.go | ||
| handler_panic.go | ||
| handler_rid.go | ||
| register_archive.go | ||
| register_artifacts.go | ||
| register_auth.go | ||
| register_containers.go | ||
| register_distribution.go | ||
| register_events.go | ||
| register_exec.go | ||
| register_generate.go | ||
| register_healthcheck.go | ||
| register_images.go | ||
| register_info.go | ||
| register_kube.go | ||
| register_manifest.go | ||
| register_monitor.go | ||
| register_networks.go | ||
| register_ping.go | ||
| register_plugins.go | ||
| register_pods.go | ||
| register_quadlets.go | ||
| register_secrets.go | ||
| register_swagger.go | ||
| register_swarm.go | ||
| register_system.go | ||
| register_version.go | ||
| register_volumes.go | ||
| server.go | ||