Merge branch 'main' of github.com:gmkurtzer/warewulf into netdev_refactor
This commit is contained in:
@@ -41,7 +41,6 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), "RuntimeOverlay", profile.RuntimeOverlay.Print())
|
||||
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), "SystemOverlay", profile.SystemOverlay.Print())
|
||||
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), "Ipxe", profile.Ipxe.Print())
|
||||
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), "IpmiIpaddr", profile.IpmiIpaddr.Print())
|
||||
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), "IpmiNetmask", profile.IpmiNetmask.Print())
|
||||
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), "IpmiPort", profile.IpmiPort.Print())
|
||||
fmt.Printf("%-20s %-18s %s\n", profile.Id.Get(), "IpmiGateway", profile.IpmiGateway.Print())
|
||||
|
||||
@@ -4,9 +4,10 @@ import "github.com/spf13/cobra"
|
||||
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
Use: "list [flags] [profile pattern]...",
|
||||
DisableFlagsInUseLine: true,
|
||||
Use: "list [OPTIONS] [PROFILE ...]",
|
||||
Short: "List profiles and configurations",
|
||||
Long: "This command will list and show the profile configurations.",
|
||||
Long: "This command will display configurations for PROFILE.",
|
||||
RunE: CobraRunE,
|
||||
Aliases: []string{"ls"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user