-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Support artifact type auto complete in podman inspect #28671
Copy link
Copy link
Open
Labels
Good First IssueThis issue would be a good issue for a first time contributor to undertake.This issue would be a good issue for a first time contributor to undertake.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.volunteers-wantedIssues good for community/volunteer contributionsIssues good for community/volunteer contributions
Metadata
Metadata
Labels
Good First IssueThis issue would be a good issue for a first time contributor to undertake.This issue would be a good issue for a first time contributor to undertake.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.volunteers-wantedIssues good for community/volunteer contributionsIssues good for community/volunteer contributions
Feature request description
Currently, shell auto-completion partially works for
podman inspect --type artifact. The shell successfully completes the wordartifactitself.However, it fails to provide auto-completion suggestions for the actual artifact names/references that follow. When a user types
podman inspect --type artifactand presses TAB, no available OCI artifacts are listed.This is inconsistent with how
--type imageor--type containerbehaves, where available local targets are automatically suggested.Suggest potential solution
Update the shell completion logic to query and list available OCI artifacts when the
--type artifactflag is provided.This will allow users to easily autocomplete the names of their stored artifacts just like they do with images and containers.
I think we can just implement Suggest potential solution
I believe this is a straightforward but valuable addition to the CLI. I’m happy to work on a PR for this if the maintainers agree with the proposal!