github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/command/tls_ca.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 TLSCACommand struct { 11 Meta 12 } 13 14 func (c *TLSCACommand) Help() string { 15 helpText := ` 16 Usage: nomad tls ca <subcommand> [options] 17 18 This command groups subcommands for interacting with certificate authorities. 19 For examples, see the documentation. 20 21 Create a certificate authority. 22 23 $ nomad tls ca create 24 25 Show information about a certificate authority. 26 27 $ nomad tls ca info 28 ` 29 return strings.TrimSpace(helpText) 30 } 31 32 func (c *TLSCACommand) AutocompleteArgs() complete.Predictor { 33 return complete.PredictNothing 34 } 35 36 func (c *TLSCACommand) Synopsis() string { 37 return "Helpers for managing certificate authorities" 38 } 39 40 func (c *TLSCACommand) Name() string { return "tls ca" } 41 42 func (c *TLSCACommand) Run(_ []string) int { 43 return cli.RunResultHelp 44 }