go-pass-gen/cmd/root.go
Ruidy Nemausat 97a1724001
init project
2021-10-20 13:48:06 +02:00

24 lines
348 B
Go

package cmd
import (
"log"
"os"
"github.com/spf13/cobra"
)
var rootCommand = &cobra.Command{
Use: "passGen",
Short: "PassGen",
Long: "Password Generator",
Run: func(cmd *cobra.Command, args []string) {
log.Println("started")
},
}
func Execute() {
if err := rootCommand.Execute(); err != nil {
log.Println(err)
os.Exit(1)
}
}