cmd/inspect: add help
This commit is contained in:
parent
5e6b089971
commit
5953627623
|
@ -26,8 +26,18 @@ var (
|
||||||
// Register the "inspect" subcommand.
|
// Register the "inspect" subcommand.
|
||||||
func Register(root *cobra.Command) {
|
func Register(root *cobra.Command) {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "inspect",
|
Use: "inspect source [source2 …]",
|
||||||
Short: "Inspect files and TLS servers",
|
Short: "Inspect files and TLS servers",
|
||||||
|
Long: `Allows inspection of RSA keys, X.509 certificates, CRLs and CSRs. Pass
|
||||||
|
it a list of sources. Valid sources are:
|
||||||
|
• filenames
|
||||||
|
• ‘-’ for stdin
|
||||||
|
• host:port for extracting the server's certificate chain from a TLS handshake
|
||||||
|
• https://addr.example/ as per host:port
|
||||||
|
|
||||||
|
The output will by default be human-readable formatted text for the terminal,
|
||||||
|
but JSON and YAML are also supported through the --output flag.`,
|
||||||
|
|
||||||
RunE: Inspect,
|
RunE: Inspect,
|
||||||
Args: cobra.MinimumNArgs(1),
|
Args: cobra.MinimumNArgs(1),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue