mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
* add grabpl command to build internal plugins * grabpl build-plugins -> ./bin/build build-plugins
44 lines
733 B
Go
44 lines
733 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
|
|
app.Commands = cli.Commands{
|
|
{
|
|
Name: "build-backend",
|
|
Usage: "Build one or more variants of back-end binaries",
|
|
ArgsUsage: "[version]",
|
|
Action: ArgCountWrapper(1, BuildBackend),
|
|
Flags: []cli.Flag{
|
|
&jobsFlag,
|
|
&variantsFlag,
|
|
&editionFlag,
|
|
&buildIDFlag,
|
|
},
|
|
},
|
|
{
|
|
Name: "build-plugins",
|
|
Usage: "Build internal plug-ins",
|
|
Action: ArgCountWrapper(1, BuildInternalPlugins),
|
|
Flags: []cli.Flag{
|
|
&jobsFlag,
|
|
&editionFlag,
|
|
&signingAdminFlag,
|
|
&signFlag,
|
|
&noInstallDepsFlag,
|
|
},
|
|
},
|
|
}
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
log.Fatalln(err)
|
|
}
|
|
}
|