Skip to content

Commit

Permalink
Improve cert get command
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kursell committed Feb 20, 2019
1 parent 339e014 commit f6b8121
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cmd/dbg/main.go
Expand Up @@ -71,15 +71,22 @@ func main() {
}
backendsCmd.AddCommand(backendsGetCmd)

certCmd := &cobra.Command{
Use: "certs",
Short: "Inspect dynamic SSL certificates",
}

certGetCmd := &cobra.Command{
Use: "get-cert",
Short: "Output the SSL certificate for the given hostname",
Use: "get [hostname]",
Short: "Get the dynamically-loaded certificate information for the given hostname",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
certGet(args[0])
},
}
rootCmd.AddCommand(certGetCmd)
certCmd.AddCommand(certGetCmd)

rootCmd.AddCommand(certCmd)

generalCmd := &cobra.Command{
Use: "general",
Expand Down

0 comments on commit f6b8121

Please sign in to comment.