This will allow users to specify buildpacks outside of a git repository. Note that this does not override any specified `BUILDPACK_URL`. Closes #3256
20 lines
422 B
Go
20 lines
422 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
"os"
|
|
|
|
"github.com/dokku/dokku/plugins/buildpacks"
|
|
"github.com/dokku/dokku/plugins/common"
|
|
)
|
|
|
|
func main() {
|
|
args := flag.NewFlagSet("buildpacks:set", flag.ExitOnError)
|
|
index := args.Int("index", 0, "--index: the 1-based index of the URL in the list of URLs")
|
|
args.Parse(os.Args[2:])
|
|
err := buildpacks.CommandSet(args.Args(), *index)
|
|
if err != nil {
|
|
common.LogFail(err.Error())
|
|
}
|
|
}
|