aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-09-02 09:24:53 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-09-02 09:44:00 +0200
commitf3d8da10750d58fce482042cff87455a1e6f36e0 (patch)
tree5018a7356afa8ade6a69eb8767aa7a3439aa01da /bridge/core
parent46f957344499863c97a20d34cf8ba078d3245c3a (diff)
downloadgit-bug-f3d8da10750d58fce482042cff87455a1e6f36e0.tar.gz
bridge/core: add tokenStdin field to bridgeParams
commands: move tokenStdin handling logic to bridge.Configure
Diffstat (limited to 'bridge/core')
-rw-r--r--bridge/core/bridge.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/bridge/core/bridge.go b/bridge/core/bridge.go
index 9161b418..6fd28b03 100644
--- a/bridge/core/bridge.go
+++ b/bridge/core/bridge.go
@@ -31,10 +31,11 @@ var bridgeImpl map[string]reflect.Type
// BridgeParams holds parameters to simplify the bridge configuration without
// having to make terminal prompts.
type BridgeParams struct {
- Owner string
- Project string
- URL string
- Token string
+ Owner string
+ Project string
+ URL string
+ Token string
+ TokenStdin bool
}
// Bridge is a wrapper around a BridgeImpl that will bind low-level