package main /* SSH Certificate Host Client */ import ( "log" "os" "github.com/urfave/cli" ) func main() { app := cli.NewApp() app.Name = "ssh-host-client" app.Usage = "SSH Certificate Authority Toolkit - Host Signing Client" app.EnableBashCompletion = true app.Version = "0.1" app.Flags = []cli.Flag{ cli.StringFlag{ Name: "config, c", Usage: "Load configuration from `FILE`", }, } app.Commands = []cli.Command{ { Name: "sign", Usage: "Sign host certificates.", Flags: signFlags(), Action: sign, }, { Name: "test", Usage: "Test the configuration file to ensure it follows standards.", Flags: configTestFlags(), Action: configTest, }, } err := app.Run(os.Args) if err != nil { log.Fatal(err) } }