You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

embedded_stub.go 771B

12345678910111213141516171819202122232425262728293031
  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. //go:build !bindata
  5. // +build !bindata
  6. package cmd
  7. import (
  8. "fmt"
  9. "os"
  10. "github.com/urfave/cli"
  11. )
  12. // Cmdembedded represents the available extract sub-command.
  13. var (
  14. Cmdembedded = cli.Command{
  15. Name: "embedded",
  16. Usage: "Extract embedded resources",
  17. Description: "A command for extracting embedded resources, like templates and images",
  18. Action: extractorNotImplemented,
  19. }
  20. )
  21. func extractorNotImplemented(c *cli.Context) error {
  22. err := fmt.Errorf("Sorry: the 'embedded' subcommand is not available in builds without bindata")
  23. fmt.Fprintf(os.Stderr, "%s\n", err)
  24. return err
  25. }