Michael Muré
536c290dfb
commands: open and close the backend in a single place, simplify commands
2020-06-28 19:09:32 +02:00
Michael Muré
26bd1dd110
commands: refactor to avoid globals
2020-06-28 18:26:29 +02:00
Michael Muré
fe3d5c95e4
bridges: massive refactor
...
- automatic flag validation and warning
- generalized prompt
- cleanups
2020-02-15 02:55:19 +01:00
Michael Muré
864d3ed335
bridge: allow to configure and pull without having set a user first
...
- init() only the importer or exporter as required
- assign a "default user" user Id to credentials at creation if no user has been set
- "bridge auth": also display the user
- "bridge auth show": adapt to a potential "default user" user Id
- "bridge configure": allow to run without a user set
- "bridge pull": allow to run without a user set
- "user adopt": replace "default user" by the actual user id when run
2019-12-25 23:25:39 +01:00
amine
f6b4830c0b
bridge/gitlab: support self-hosted GitLab instance
2019-12-10 21:05:55 +01:00
Michael Muré
b92adfcb5f
bridge: huge refactor to accept multiple kind of credentials
2019-12-08 21:28:27 +01:00
amine
7cb772095e
bridge: trim inputs during bridge configuration
2019-11-25 15:08:48 +01:00
amine
09db1cda71
commands: add bridge configure --token-id flag
2019-11-23 19:26:27 +01:00
Michael Muré
60427f066a
bridge configure: no default name if the default has already been created
2019-11-19 20:20:19 +01:00
Amine Hilaly
f3d8da1075
bridge/core: add tokenStdin field to bridgeParams
...
commands: move tokenStdin handling logic to bridge.Configure
2019-09-02 09:44:00 +02:00
Amine Hilaly
be94780315
bridge/github: recover terminal state in password prompts
...
commands: error if a token is provide but not the bridge name and target
2019-08-31 23:02:20 +02:00
Amine
65d7ce7c05
commands: enhance flag description
...
bridge/github: improve configuration logic
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-08-31 23:02:20 +02:00
Amine Hilaly
0381400bfd
commands: read token from stdin in bridge configuration
...
bridge: improve bridge config validation
2019-08-31 23:02:20 +02:00
Michael Muré
35c6cb6e36
readme: tweaking
2019-08-24 14:18:22 +02:00
Amine Hilaly
03b6afa2f3
docs: update implementation table
...
docs: add bridge usage examples
2019-08-24 13:55:49 +02:00
Michael Muré
dc289876c6
bridge: detect when trying to configure a bridge with a name already taken
2019-07-07 12:15:01 +02:00
Amine Hilaly
8d6bdb6507
rename GITHUB_TOKEN to GITHUB_PRIVATE_TOKEN
2019-06-07 01:43:48 +02:00
Amine Hilaly
a6c8b6b78d
make token visible in configuration process
...
validate token
global fixes
2019-06-07 01:17:59 +02:00
Amine
c52a467302
Allow cancelling configuration
...
correct error message
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-06-05 01:40:37 +02:00
Amine Hilaly
630bbc6753
Update bridge configure long description and examples
2019-05-29 22:58:01 +02:00
Amine
5ea0cb138b
Update documentation and function naming
...
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-05-29 22:58:01 +02:00
Amine Hilaly
aa439fae06
Add bridge configure documentation and examples
2019-05-29 22:58:01 +02:00
Amine Hilaly
99b6107487
Disable bridgeConfigure
sort flags option
...
rename `validateGithubURLRemotes` to `getValideGithubRemoteURLs`
2019-05-29 22:58:01 +02:00
Amine
1022b9e536
Update flags descriptions
...
Enhance printing in prompt
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-05-29 22:58:01 +02:00
Amine Hilaly
43758a14fd
Add warning messages for launchpad-preview
...
fix --target flag description
improve comments
2019-05-29 22:58:01 +02:00
Amine Hilaly
f124df7e73
changes to the BridgeImpl Interface
...
Add bridge params
Change bridge.Configure signature
2019-05-29 22:58:01 +02:00
Michael Muré
2fd5f71b59
commands: add a "." at the end of Short commands usage
2019-03-01 22:52:52 +01:00
Rafael Passos
f72b18496b
moved cleaner function to util/interrupt
2018-10-24 18:36:39 -03:00
Rafael Passos
c38f8f1c30
Registering lock clearing functions to Cleaner
2018-10-23 18:01:00 -03:00
Michael Muré
7a511f9a13
commands: don't load the repo for commands that don't need it
...
fix #67
2018-10-17 20:39:35 +02:00
Michael Muré
f37155d00f
commands: better multi choice prompt to select the target for "bridge configure"
2018-10-03 21:05:19 +02:00
Michael Muré
061e83d4b4
commands: add "bridge rm"
2018-09-24 16:24:38 +02:00
Michael Muré
43bda202fa
commands: add the "bridge" and "bridge configure" commands
2018-09-24 15:25:57 +02:00