mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
23 lines
591 B
Go
23 lines
591 B
Go
package dns
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewRootCommand() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "dns",
|
|
Short: "Manage cluster domain in Uncloud DNS.",
|
|
Long: "Manage cluster domain in Uncloud DNS.\n" +
|
|
"DNS commands allow you to reserve or release a unique '<id>.cluster.uncloud.run' domain for your " +
|
|
"cluster. When reserved, Caddy service deployments will automatically update DNS records to route " +
|
|
"traffic to the services in the cluster.",
|
|
}
|
|
cmd.AddCommand(
|
|
NewReleaseCommand(),
|
|
NewReserveCommand(),
|
|
NewShowCommand(),
|
|
)
|
|
return cmd
|
|
}
|