1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-26 03:09:37 +02:00

Clean up CLI args

This commit is contained in:
xenolf 2015-09-27 14:50:45 +02:00
parent 6f979feffa
commit 754e0d4ffa

38
cli.go
View File

@ -35,19 +35,12 @@ 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",
Action: func(c *cli.Context) {
logger().Fatal("Not implemented")
},
},
{
Name: "install",
Usage: "Install a certificate",
Usage: "Create a certificate - must already have an account",
Action: func(c *cli.Context) {
logger().Fatal("Not implemented")
},
@ -55,32 +48,7 @@ func main() {
{
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",
},
},
Action: revoke,
},
}