diff options
Diffstat (limited to 'bridge/launchpad')
-rw-r--r-- | bridge/launchpad/config.go | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/bridge/launchpad/config.go b/bridge/launchpad/config.go index 11a465be..637ffd2c 100644 --- a/bridge/launchpad/config.go +++ b/bridge/launchpad/config.go @@ -12,15 +12,17 @@ import ( const keyProject = "project" -func (*Launchpad) Configure(repo repository.RepoCommon) (core.Configuration, error) { +func (*Launchpad) Configure(repo repository.RepoCommon, params core.BridgeParams) (core.Configuration, error) { conf := make(core.Configuration) - projectName, err := promptProjectName() - if err != nil { - return nil, err - } + if params.Project == "" { + projectName, err := promptProjectName() + if err != nil { + return nil, err + } - conf[keyProject] = projectName + conf[keyProject] = projectName + } return conf, nil } @@ -52,3 +54,7 @@ func promptProjectName() (string, error) { return line, nil } } + +func validateProject() (bool, error) { + return false, nil +} |