code: func NewCmdCreateSecretGeneric(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
  	options := &SecretGenericOpts{
  		CreateSubcommandOptions: NewCreateSubcommandOptions(ioStreams),
  	}
  
  	cmd := &cobra.Command{
  		Use:                   "generic NAME [--type=string] [--from-file=[key=]source] [--from-literal=key1=value1] [--dry-run]",
  		DisableFlagsInUseLine: true,
  		Short:                 i18n.T("Create a secret from a local file, directory or literal value"),
  		Long:                  secretLong,
  		Example:               secretExample,
  		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.SecretV1GeneratorName)
  	cmd.Flags().StringSlice("from-file", []string{}, "Key files can be specified using their file path, in which case a default name will be given to them, or optionally with a name and file path, in which case the given name will be used.  Specifying a directory will iterate each named file in the directory that is a valid secret key.")
  	cmd.Flags().StringArray("from-literal", []string{}, "Specify a key and literal value to insert in secret (i.e. mykey=somevalue)")
  	cmd.Flags().String("from-env-file", "", "Specify the path to a file to read lines of key=val pairs to create a secret (i.e. a Docker .env file).")
  	cmd.Flags().String("type", "", i18n.T("The type of secret to create"))
  	cmd.Flags().Bool("append-hash", false, "Append a hash of the secret to its name.")
  	return cmd
  }
docs: // NewCmdCreateSecretGeneric is a command to create generic secrets from files, directories, or literal values