Skip to content

Commit

Permalink
chore(ifdata): Remove CIDR block from shell completion description
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 11, 2024
1 parent 00f4a71 commit 71516fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ifdata/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func validArgs(_ *cobra.Command, args []string, _ string) ([]string, cobra.Shell
desc := make([]string, 0, len(addrs))
for _, addr := range addrs {
if addr, ok := addr.(*net.IPNet); ok && addr.IP.To4() != nil {
desc = append(desc, addr.String())
desc = append(desc, addr.IP.String())
}
}
names = append(names, iface.Name+"\t"+strings.Join(desc, ","))
Expand Down

0 comments on commit 71516fb

Please sign in to comment.