prefix in list-command to identify keys more easily

This commit is contained in:
Niko Kivel
2021-05-11 08:49:37 +02:00
parent 17f26e8bf1
commit df1f0bed2f
2 changed files with 4 additions and 4 deletions

View File

@@ -55,8 +55,8 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
fmt.Printf("%-20s %-18s %t\n", profile.Id.Get(), name+":DEFAULT", netdev.Default.PrintB())
}
for name, key := range profile.Keys {
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), name, key.Print())
for keyname, key := range profile.Keys {
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), "Keys."+keyname, key.Print())
}
}
} else {