diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-24 21:04:35 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-29 22:58:01 +0200 |
commit | 5f80f242fa2afc7c5844d685d94d70fba97b7a0c (patch) | |
tree | f4a06b7400d3870876069d2e4fab833d364d7d3b /bridge/launchpad/config.go | |
parent | 6deb6ec469d4f10e668597a79d71afd11204a8b2 (diff) | |
download | git-bug-5f80f242fa2afc7c5844d685d94d70fba97b7a0c.tar.gz |
Launchpad changes
Use bridge params to configure the bridge
Diffstat (limited to 'bridge/launchpad/config.go')
-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 +} |