github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/command/tls_cert.go (about) 1 package command 2 3 import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7 "github.com/posener/complete" 8 ) 9 10 type TLSCertCommand struct { 11 Meta 12 } 13 14 func (c *TLSCertCommand) Help() string { 15 helpText := ` 16 Usage: nomad tls cert <subcommand> [options] 17 18 This command groups subcommands for interacting with certificates. 19 For examples, see the documentation. 20 21 Create a TLS certificate. 22 23 $ nomad tls cert create 24 25 Show information about a TLS certificate. 26 27 $ nomad tls cert info 28 ` 29 return strings.TrimSpace(helpText) 30 } 31 32 func (c *TLSCertCommand) AutocompleteArgs() complete.Predictor { 33 return complete.PredictNothing 34 } 35 36 func (c *TLSCertCommand) Synopsis() string { 37 return "Helpers for managing certificates" 38 } 39 40 func (c *TLSCertCommand) Name() string { return "tls cert" } 41 42 func (c *TLSCertCommand) Run(_ []string) int { 43 return cli.RunResultHelp 44 }