Skip to content

feat(cli): output flags for ps and images (--format/-q, ps -a)#432

Merged
Jaro-c merged 1 commit into
developfrom
feat/ps-images-flags
Jun 17, 2026
Merged

feat(cli): output flags for ps and images (--format/-q, ps -a)#432
Jaro-c merged 1 commit into
developfrom
feat/ps-images-flags

Conversation

@Jaro-c

@Jaro-c Jaro-c commented Jun 17, 2026

Copy link
Copy Markdown
Member

Closes #412 (part of CLI parity epic #410).

What

ps and images had no flags. Adds docker compose's output controls:

  • ps: -a/--all (and the default is now running-only, matching docker compose), -q/--quiet (container IDs), --format table|json
  • images: -q/--quiet (image IDs), --format table|json

How

Non-breaking: existing Engine::ps/images kept as default-option wrappers; overrides go through ps_with_options/images_with_options. An Id field was added to ContainerListEntry for -q. A --format clap ValueEnum (table/json) drives output.

Verification (real Podman 5.4.2)

$ podup ps -q
252fe0663483
$ podup ps --format json
[ { "ID": "...", "Image": "docker.io/library/alpine:latest", "Name": "pssx-web", "Status": "" } ]
$ podup images -q
772bee4540c4

CLI flag-surface test; existing ps/images integration tests pass; fmt + clippy clean; non-breaking (semver-safe wrappers).

Closes #412.

ps and images had no flags. Add docker compose's output controls:
- ps: -a/--all (default now running-only, matching docker), -q/--quiet
  (container IDs), --format table|json
- images: -q/--quiet (image IDs), --format table|json

Non-breaking: existing Engine::ps/images kept as default-option wrappers;
overrides go through ps_with_options/images_with_options. Adds an Id field
to ContainerListEntry for -q.

Closes #412.

Signed-off-by: Jaro-c <75870284+Jaro-c@users.noreply.github.com>
@Jaro-c Jaro-c added type:feature New functionality prio:P2 Medium area:cli labels Jun 17, 2026
@Jaro-c Jaro-c merged commit 5f427b8 into develop Jun 17, 2026
13 checks passed
@Jaro-c Jaro-c deleted the feat/ps-images-flags branch June 17, 2026 16:23
Jaro-c added a commit that referenced this pull request Jun 17, 2026
Promote #432 (closes #412) to main. No tag. ps/images --format/-q, ps -a
(default running-only). Non-breaking; CI-green, real-Podman verified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli prio:P2 Medium type:feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant