28 lines
566 B
Go
28 lines
566 B
Go
/*
|
|
Copyright © 2024 raul
|
|
*/
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var serverCmd = &cobra.Command{
|
|
Use: "server",
|
|
Short: "Start cert400 web server",
|
|
Long: `Start cert400 web server`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
server()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(serverCmd)
|
|
serverCmd.Flags().StringP("cert", "c", "$HOME/.config/cert400/server.crt", "CA certificate")
|
|
serverCmd.Flags().StringP("key", "k", "$HOME/.config/cert400/server.key", "CA private key")
|
|
}
|
|
func setServerParams(cmd *cobra.Command) error {
|
|
return nil
|
|
}
|