mirror of https://github.com/ory/hydra
22 lines
376 B
Go
22 lines
376 B
Go
// Copyright © 2022 Ory Corp
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/ory/x/clidoc"
|
|
|
|
"github.com/ory/hydra/v2/cmd"
|
|
)
|
|
|
|
func main() {
|
|
if err := clidoc.Generate(cmd.NewRootCmd(), os.Args[1:]); err != nil {
|
|
_, _ = fmt.Fprintf(os.Stderr, "%+v", err)
|
|
os.Exit(1)
|
|
}
|
|
fmt.Println("All files have been generated and updated.")
|
|
}
|