Skip to content

Some subcommands aren't autocompleted #6447

@mattiasb

Description

@mattiasb

Issue Description

I was looking for a login sub-command as I had just learned that buildah can
push and pull images in addition to just building. I typed buildah log<TAB><TAB and got nothing. That felt weird to me so I looked at buildah --help and sure enough there was a login and logout command.

Steps to reproduce the issue

$ buildah log<TAB><TAB>

Describe the results you received

No results.

Describe the results you expected

$ buildah log
login logout
$ buildah log

buildah version output

buildah version 1.41.5 (image-spec 1.1.1, runtime-spec 1.2.1)

buildah info output

{
    "host": {
        "CgroupVersion": "v2",
        "Distribution": {
            "distribution": "fedora",
            "version": "42"
        },
        "MemFree": 49020469248,
        "MemTotal": 67029299200,
        "OCIRuntime": "crun",
        "SwapFree": 8589930496,
        "SwapTotal": 8589930496,
        "arch": "amd64",
        "cpus": 12,
        "hostname": "mattiasb-hpeb640",
        "kernel": "6.16.12-200.fc42.x86_64",
        "os": "linux",
        "rootless": true,
        "uptime": "57m 8.38s",
        "variant": ""
    },
    "store": {
        "ContainerStore": {
            "number": 37
        },
        "GraphDriverName": "overlay",
        "GraphOptions": null,
        "GraphRoot": "/home/mattiasb/.local/share/containers/storage",
        "GraphStatus": {
            "Backing Filesystem": "btrfs",
            "Native Overlay Diff": "true",
            "Supports d_type": "true",
            "Supports shifting": "false",
            "Supports volatile": "true",
            "Using metacopy": "false"
        },
        "ImageStore": {
            "number": 666
        },
        "RunRoot": "/run/user/1000/containers"
    }

Provide your storage.conf

$ locate storage.conf
/usr/share/containers/storage.conf
/usr/share/man/man5/containers-storage.conf.5.gz

$ cat /usr/share/containers/storage.conf | grep -E -v '^(#.*)?$' 
[storage]
driver = "overlay"
runroot = "/run/containers/storage"
graphroot = "/var/lib/containers/storage"
[storage.options]
additionalimagestores = [
"/usr/lib/containers/storage",
]
pull_options = {enable_partial_images = "true", use_hard_links = "false", ostree_repos=""}
[storage.options.overlay]
mountopt = "nodev,metacopy=on"

Upstream Latest Release

No

Additional environment details

Fedora 42 Workstation

Additional information

For completeness I made a diff of the sub-commands that are bash-completed and
the sub-commands listed in --help:

--- buildah.help	2025-10-23 11:11:42.733572815 +0200
+++ buildah.comp	2025-10-23 11:11:51.326493006 +0200
@@ -1,28 +1,29 @@
 add
+bud
 build
 commit
 config
 containers
 copy
+delete
 from
 help
 images
 info
 inspect
-login
-logout
+list
+ls
 manifest
-mkcw
 mount
-prune
+ps
 pull
 push
 rename
 rm
 rmi
 run
-source
 tag
 umount
+unmount
 unshare
 version

I understand that one might want to have some difference between what's listed
in help and what's auto-completed (think the plumbing commands in git for
example) but given that login and logout is missing from bash-completion I
guess there's some unintentional differences as well. :)

Anyhow, thanks for Podman, Buildah and Skopeo! I use them almost daily!

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.stale-issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions