aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge_configure.go
Commit message (Collapse)AuthorAgeFilesLines
* Add command-specific argument completionsJohannes Altmanninger2022-05-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | Complete bug IDs, bridges, users, labels where appropriate. This works in bash and fish. ZSH is not yet supported by Cobra. In fish, descriptions (the part of a completion after the "\t") are shown as completion label, and can be searched with Ctrl+S. Reproduce with fish -C 'source misc/fish_completion/git-bug' git bug select ^I (tested with fish version 3.3.1) Also works with bash, but only for "git-bug" (with the dash) bash --rcfile <(echo source misc/bash_completion/git-bug) git-bug select ^I Closes #493
* commands: proper backend close on RunE errorMichael Muré2021-05-091-4/+3
|
* CLI: Add non-interactive option to interactive commands (#651)Sascha2021-05-091-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add option to skip the AvatarURL input request Using an empty string for the avatar cli flag e.g. `git-bug user create -a ""` will still result in a prompt. As the avatar URL is an optional option, it should be possible to skip asking for it entirely. Otherwise automated user creation via a script must make use of pipe hacks. * Add global --non-interactive cmdline option * Replace --skipAvatar for --non-interactive option * Cmd BugAdd: respect non-interactive option * Cmd bridge configure: respect non-interactive opt * Cmd CommentAdd: respect non-interactive option * Cmd CommentEdit: respect non-interactive option * Cmd TermUI: respect non-interactive option * Cmd TitleEdit: respect non-interactive option * Remove global non-interactive option * Cmd UserCreate: Use local non-interactive option * Cmd BugAdd: Use local non-interactive option * Cmd BridgeConfigure: Use local non-interactive option * Cmd CommentAdd: Use local non-interactive option * Cmd CommentEdit: Use local non-interactive option * Cmd TermUI: Drop non-interactive option It should be obviouse that the termui is an interactive command. * Cmd TitleEdit: Use local non-interactive option * Update docs * Bridge GitHub: respect non-interactive option * Bridge GitLab: respect non-interactive option * Bridge Jira: respect non-interactive and token opt * Fix failing compilation * Bridge launchpad: respect non-interactive option * bridge: isNonInteractive --> interactive Co-authored-by: Michael Muré <batolettre@gmail.com>
* commands: open and close the backend in a single place, simplify commandsMichael Muré2020-06-281-10/+4
|
* commands: refactor to avoid globalsMichael Muré2020-06-281-104/+112
|
* bridges: massive refactorMichael Muré2020-02-151-10/+12
| | | | | | - automatic flag validation and warning - generalized prompt - cleanups
* bridge: allow to configure and pull without having set a user firstMichael Muré2019-12-251-1/+1
| | | | | | | | | | - 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
* bridge/gitlab: support self-hosted GitLab instanceamine2019-12-101-0/+1
|
* bridge: huge refactor to accept multiple kind of credentialsMichael Muré2019-12-081-14/+36
|
* bridge: trim inputs during bridge configurationamine2019-11-251-2/+2
|
* commands: add bridge configure --token-id flagamine2019-11-231-1/+3
|
* bridge configure: no default name if the default has already been createdMichael Muré2019-11-191-1/+11
|
* bridge/core: add tokenStdin field to bridgeParamsAmine Hilaly2019-09-021-13/+3
| | | | commands: move tokenStdin handling logic to bridge.Configure
* bridge/github: recover terminal state in password promptsAmine Hilaly2019-08-311-0/+4
| | | | commands: error if a token is provide but not the bridge name and target
* commands: enhance flag description Amine2019-08-311-1/+1
| | | | | bridge/github: improve configuration logic Co-Authored-By: Michael Muré <batolettre@gmail.com>
* commands: read token from stdin in bridge configurationAmine Hilaly2019-08-311-11/+11
| | | | bridge: improve bridge config validation
* readme: tweakingMichael Muré2019-08-241-1/+1
|
* docs: update implementation tableAmine Hilaly2019-08-241-2/+9
| | | | docs: add bridge usage examples
* bridge: detect when trying to configure a bridge with a name already takenMichael Muré2019-07-071-12/+20
|
* rename GITHUB_TOKEN to GITHUB_PRIVATE_TOKENAmine Hilaly2019-06-071-1/+1
|
* make token visible in configuration processAmine Hilaly2019-06-071-7/+12
| | | | | validate token global fixes
* Allow cancelling configurationAmine2019-06-051-0/+7
| | | | | | correct error message Co-Authored-By: Michael Muré <batolettre@gmail.com>
* Update bridge configure long description and examplesAmine Hilaly2019-05-291-13/+43
|
* Update documentation and function namingAmine2019-05-291-4/+2
| | | Co-Authored-By: Michael Muré <batolettre@gmail.com>
* Add bridge configure documentation and examplesAmine Hilaly2019-05-291-3/+21
|
* Disable `bridgeConfigure` sort flags optionAmine Hilaly2019-05-291-0/+1
| | | | rename `validateGithubURLRemotes` to `getValideGithubRemoteURLs`
* Update flags descriptions Amine2019-05-291-6/+7
| | | | | Enhance printing in prompt Co-Authored-By: Michael Muré <batolettre@gmail.com>
* Add warning messages for launchpad-previewAmine Hilaly2019-05-291-1/+1
| | | | | fix --target flag description improve comments
* changes to the BridgeImpl InterfaceAmine Hilaly2019-05-291-9/+30
| | | | | Add bridge params Change bridge.Configure signature
* commands: add a "." at the end of Short commands usageMichael Muré2019-03-011-1/+1
|
* moved cleaner function to util/interruptRafael Passos2018-10-241-2/+2
|
* Registering lock clearing functions to CleanerRafael Passos2018-10-231-0/+2
|
* commands: don't load the repo for commands that don't need itMichael Muré2018-10-171-3/+4
| | | | fix #67
* commands: better multi choice prompt to select the target for "bridge configure"Michael Muré2018-10-031-6/+10
|
* commands: add "bridge rm"Michael Muré2018-09-241-2/+1
|
* commands: add the "bridge" and "bridge configure" commandsMichael Muré2018-09-241-0/+95