2020-02-02 03:17:44 +01:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2022-11-27 19:20:29 +01:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-02-02 03:17:44 +01:00
|
|
|
|
2021-08-24 18:47:09 +02:00
|
|
|
//go:build !bindata
|
2020-02-02 03:17:44 +01:00
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/urfave/cli"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Cmdembedded represents the available extract sub-command.
|
|
|
|
var (
|
|
|
|
Cmdembedded = cli.Command{
|
|
|
|
Name: "embedded",
|
|
|
|
Usage: "Extract embedded resources",
|
|
|
|
Description: "A command for extracting embedded resources, like templates and images",
|
|
|
|
Action: extractorNotImplemented,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func extractorNotImplemented(c *cli.Context) error {
|
|
|
|
err := fmt.Errorf("Sorry: the 'embedded' subcommand is not available in builds without bindata")
|
|
|
|
fmt.Fprintf(os.Stderr, "%s\n", err)
|
|
|
|
return err
|
|
|
|
}
|