Skip to content

add shell completion for podman network create --interface-name #27113

@Luap99

Description

@Luap99

Feature request description

When typing the network create command --interface-name it would be nice if we could get a list of all local interface names as shell autocomplete suggestion.

Suggest potential solution

The autocompletion code is written in go, currently the flag is using no completion function here

_ = cmd.RegisterFlagCompletionFunc(interfaceFlagName, completion.AutocompleteNone)

Add a new function in cmd/podman/common/completion.go that can list all interface names using the go standard library and then use this one for the option.

Have you considered any alternatives?

No response

Additional context

No response

Metadata

Metadata

Labels

Good First IssueThis issue would be a good issue for a first time contributor to undertake.kind/featureCategorizes issue or PR as related to a new feature.triagedIssue has been triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions