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.

30 lines
751 B

  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. }