mirror of
https://github.com/rjNemo/go-pass-gen
synced 2026-06-06 02:46:40 +00:00
24 lines
348 B
Go
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)
|
|
}
|
|
}
|