Skip to content

Enhance __fish_print_addresses #7787

@exploide

Description

@exploide

I would like to enhance the function __fish_print_addresses a bit. This function is currently used in completions when something like an address to bind to is required.

It could be enhanced to include the interface name as a description, which would help selecting the correct address.

Besides I would introduce an optional argument like --all that also outputs 0.0.0.0 and ::.

Before conducting a PR: can I just change the existing function or should I create a new one? While a change would not affect the fish codebase, theoretically it's possible that 3rd party scripts use this functions and rely on the fact that no descriptions are included. But if I introduce a new function, the existing one would be unused across the fish codebase.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions