From 754e0d4ffa0116eed9690d2cd7f59d15c871cf4d Mon Sep 17 00:00:00 2001 From: xenolf Date: Sun, 27 Sep 2015 14:50:45 +0200 Subject: [PATCH] Clean up CLI args --- cli.go | 42 +++++------------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/cli.go b/cli.go index 64ff213f..ee2d66e1 100644 --- a/cli.go +++ b/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, }, }