custom paramters
This commit is contained in:
@@ -54,6 +54,10 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), name+":TYPE", netdev.Hwaddr.Print())
|
||||
fmt.Printf("%-20s %-18s %t\n", profile.Id.Get(), name+":DEFAULT", netdev.Default.PrintB())
|
||||
}
|
||||
|
||||
for name, param := range profile.Params {
|
||||
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), name, param.Print())
|
||||
}
|
||||
}
|
||||
} else {
|
||||
fmt.Printf("%-20s %s\n", "PROFILE NAME", "COMMENT/DESCRIPTION")
|
||||
|
||||
Reference in New Issue
Block a user