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.
31 lines
751 B
31 lines
751 B
5 years ago
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a MIT-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
// +build !bindata
|
||
|
|
||
|
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
|
||
|
}
|