Files
warewulf/internal/app/wwctl/configure/ssh/root.go
2021-04-23 21:06:57 -07:00

25 lines
614 B
Go

package ssh
import "github.com/spf13/cobra"
var (
baseCmd = &cobra.Command{
Use: "ssh",
Short: "Manage and initialize SSH",
Long: "SSH is an optionally dependent service for Warewulf, this tool will automatically\n" +
"setup the ssh keys nodes using the 'default' system overlay as well as user owned\n" +
"keys.",
RunE: CobraRunE,
}
SetShow bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&SetShow, "show", "s", false, "Show configuration (don't update)")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}