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 680B

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