2022-06-14 12:40:00 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"embed"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
//go:embed templates/*
|
|
|
|
var templatesFS embed.FS
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
if err := newRootCmd().Execute(); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newRootCmd() *cobra.Command {
|
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "authelia-gen",
|
|
|
|
Short: "Authelia's generator tooling",
|
2022-09-01 02:24:47 +00:00
|
|
|
|
|
|
|
DisableAutoGenTag: true,
|
2022-06-14 12:40:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
cmd.AddCommand(newAllCmd(), newCodeCmd(), newDocsCmd())
|
|
|
|
|
|
|
|
return cmd
|
|
|
|
}
|