mirror of
https://github.com/go-acme/lego.git
synced 2024-12-25 11:02:56 +02:00
Clean up CLI args
This commit is contained in:
parent
6f979feffa
commit
754e0d4ffa
42
cli.go
42
cli.go
@ -35,52 +35,20 @@ func main() {
|
||||
app.Commands = []cli.Command{
|
||||
{
|
||||
Name: "run",
|
||||
Usage: "Create and install a certificate",
|
||||
Usage: "Register an account, then create and install a certificate",
|
||||
Action: run,
|
||||
},
|
||||
{
|
||||
Name: "auth",
|
||||
Usage: "Create a certificate",
|
||||
Usage: "Create a certificate - must already have an account",
|
||||
Action: func(c *cli.Context) {
|
||||
logger().Fatal("Not implemented")
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "install",
|
||||
Usage: "Install a certificate",
|
||||
Action: func(c *cli.Context) {
|
||||
logger().Fatal("Not implemented")
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "revoke",
|
||||
Usage: "Revoke a certificate",
|
||||
Action: func(c *cli.Context) {
|
||||
logger().Fatal("Not implemented")
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "certificate",
|
||||
Usage: "Revoke a specific certificate",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "key",
|
||||
Usage: "Revoke all certs generated by the provided authorized key.",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "rollback",
|
||||
Usage: "Rollback a certificate",
|
||||
Action: func(c *cli.Context) {
|
||||
logger().Fatal("Not implemented")
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
cli.IntFlag{
|
||||
Name: "checkpoints",
|
||||
Usage: "Revert configuration N number of checkpoints",
|
||||
},
|
||||
},
|
||||
Name: "revoke",
|
||||
Usage: "Revoke a certificate",
|
||||
Action: revoke,
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user