code: func NewCmdCreateSecretTLS(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
  	options := &SecretTLSOpts{
  		CreateSubcommandOptions: NewCreateSubcommandOptions(ioStreams),
  	}
  
  	cmd := &cobra.Command{
  		Use:                   "tls NAME --cert=path/to/cert/file --key=path/to/key/file [--dry-run]",
  		DisableFlagsInUseLine: true,
  		Short:                 i18n.T("Create a TLS secret"),
  		Long:                  secretForTLSLong,
  		Example:               secretForTLSExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(options.Complete(f, cmd, args))
  			cmdutil.CheckErr(options.Run())
  		},
  	}
  
  	options.CreateSubcommandOptions.PrintFlags.AddFlags(cmd)
  
  	cmdutil.AddApplyAnnotationFlags(cmd)
  	cmdutil.AddValidateFlags(cmd)
  	cmdutil.AddGeneratorFlags(cmd, generateversioned.SecretForTLSV1GeneratorName)
  	cmd.Flags().String("cert", "", i18n.T("Path to PEM encoded public key certificate."))
  	cmd.Flags().String("key", "", i18n.T("Path to private key associated with given certificate."))
  	cmd.Flags().Bool("append-hash", false, "Append a hash of the secret to its name.")
  	return cmd
  }
docs: // NewCmdCreateSecretTLS is a macro command for creating secrets to work with Docker registries