Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

embedded_stub.go 751B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. // +build !bindata
  5. package cmd
  6. import (
  7. "fmt"
  8. "os"
  9. "github.com/urfave/cli"
  10. )
  11. // Cmdembedded represents the available extract sub-command.
  12. var (
  13. Cmdembedded = cli.Command{
  14. Name: "embedded",
  15. Usage: "Extract embedded resources",
  16. Description: "A command for extracting embedded resources, like templates and images",
  17. Action: extractorNotImplemented,
  18. }
  19. )
  20. func extractorNotImplemented(c *cli.Context) error {
  21. err := fmt.Errorf("Sorry: the 'embedded' subcommand is not available in builds without bindata")
  22. fmt.Fprintf(os.Stderr, "%s\n", err)
  23. return err
  24. }