mirror of
https://github.com/go-acme/lego
synced 2026-03-18 00:09:54 +01:00
25 lines
545 B
Go
25 lines
545 B
Go
package cmd
|
|
|
|
import "github.com/urfave/cli/v3"
|
|
|
|
// CreateRootCommand Creates the root CLI command.
|
|
func CreateRootCommand() *cli.Command {
|
|
return &cli.Command{
|
|
Name: "lego",
|
|
Usage: "ACME client written in Go",
|
|
EnableShellCompletion: true,
|
|
Commands: CreateCommands(),
|
|
}
|
|
}
|
|
|
|
// CreateCommands Creates all CLI commands.
|
|
func CreateCommands() []*cli.Command {
|
|
return []*cli.Command{
|
|
createRun(),
|
|
createRevoke(),
|
|
createRenew(),
|
|
createRegister(),
|
|
createDNSHelp(),
|
|
createList(),
|
|
}
|
|
}
|