mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
5304178165
Adds a dedicated authelia code/doc gen command.
28 lines
393 B
Go
28 lines
393 B
Go
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",
|
|
}
|
|
|
|
cmd.AddCommand(newAllCmd(), newCodeCmd(), newDocsCmd())
|
|
|
|
return cmd
|
|
}
|