77 "strings"
88 "time"
99
10- "github.com/drycc/controller-sdk-go/api"
1110 "github.com/drycc/controller-sdk-go/apps"
12- "github.com/drycc/controller-sdk-go/config"
1311 "github.com/drycc/controller-sdk-go/domains"
1412 "github.com/drycc/workflow-cli/pkg/git"
1513 "github.com/drycc/workflow-cli/pkg/logging"
@@ -18,7 +16,7 @@ import (
1816)
1917
2018// AppCreate creates an app.
21- func (d * DryccCmd ) AppCreate (id , buildpack , remote string , noRemote bool ) error {
19+ func (d * DryccCmd ) AppCreate (id , remote string , noRemote bool ) error {
2220 s , err := settings .Load (d .ConfigFile )
2321 if err != nil {
2422 return err
@@ -37,17 +35,6 @@ func (d *DryccCmd) AppCreate(id, buildpack, remote string, noRemote bool) error
3735
3836 d .Printf ("done, created %s\n " , app .ID )
3937
40- if buildpack != "" {
41- configValues := api.Config {
42- Values : map [string ]interface {}{
43- "BUILDPACK_URL" : buildpack ,
44- },
45- }
46- if _ , err = config .Set (s .Client , app .ID , configValues ); d .checkAPICompatibility (s .Client , err ) != nil {
47- return err
48- }
49- }
50-
5138 if ! noRemote {
5239 if err = git .CreateRemote (git .DefaultCmd , s .Client .ControllerURL .Host , remote , app .ID ); err != nil {
5340 if strings .Contains (err .Error (), fmt .Sprintf ("fatal: remote %s already exists." , remote )) {
0 commit comments