aboutsummaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* repository: remove tie to Bug, improved and reusable testingMichael Muré2020-06-262-2/+2
| | | | | | | | | - allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code. - generalize the memory-only and persisted Lamport clocks behind a common interface - rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily - test previously untested components with those new tests Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
* bug: harmonize how time are used, fix some issues in command special formatsMichael Muré2020-06-254-85/+102
| | | | This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.
* cmds: cleanup and re-generate filesMichael Muré2020-06-243-220/+66
|
* Fix bugsvince2020-06-242-9/+11
| | | | | | This fixes some bugs experienced when using the new formatting options: - org-mode indents not working properly - print statements missing contents
* Clean up code and fix suggestionsvince2020-06-243-83/+110
|
* Add org-mode formatting optionvince2020-06-233-8/+187
| | | | This adds an option to the formatting flag on the ls, show and user ls commands that allows the user to specify the format of the output in org-mode. This will be useful for emacs users to read it in the editor.
* Add output formatting support to the 'show' and 'user ls' commandsvince2020-06-213-27/+264
| | | | | | This adds options to specify an output format for the commands in question. Supported formats are currently: - 'plain': plaintext, stripped of all colors - 'json': prints output as a json object
* Merge pull request #403 from MichaelMure/ls-dumpVincent Tiu2020-06-181-5/+123
|\ | | | | [ls] add support for different output formats
| * Print JSON as a well-formed objectvince2020-06-181-4/+6
| | | | | | | | This prints all the bugs in a JSON array instead of one by one.
| * ls: Add support to ls dump bug information in specific formatsvince2020-06-161-5/+121
| | | | | | | | This adds an optional flag to the ls command that allows users to specify the format they wish to dump the output as. Currently, supported parameters are 'default', 'plain' and 'json'.
* | doc: fix typosMartin Michlmayr2020-06-161-1/+1
|/
* DOC: commands/root.go: syntaxWes Turner2020-05-011-1/+1
|
* query: no need for an ast packageMichael Muré2020-03-281-48/+28
|
* cache: replace the all-in-one query parser by a complete one with ↵Michael Muré2020-03-281-32/+25
| | | | AST/lexer/parser
* Merge pull request #344 from MichaelMure/github-lowercase-loginMichael Muré2020-02-291-0/+6
|\ | | | | github: fix matching cred/identity with badly cased login
| * github: correct casing for user provided loginMichael Muré2020-02-291-0/+6
| |
* | identity: bring back the login to hold that info from bridges (purely ↵Michael Muré2020-02-252-1/+4
|/ | | | informational)
* bridges: massive refactorMichael Muré2020-02-151-10/+12
| | | | | | - automatic flag validation and warning - generalized prompt - cleanups
* auth: refactor and introduce Login and LoginPassword, salt IDsMichael Muré2020-02-121-1/+1
|
* it compiles \o/Michael Muré2020-02-086-63/+72
|
* input: better reusable prompt functionsMichael Muré2020-02-081-3/+3
|
* various cleanups suggested by golang-ciMichael Muré2020-02-081-3/+1
|
* upgrade to gqlgen master, waiting for a releaseMichael Muré2020-02-051-2/+2
|
* bridge: allow to configure and pull without having set a user firstMichael Muré2019-12-255-9/+57
| | | | | | | | | | - 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
* Merge pull request #274 from MichaelMure/gitlab-bridgeMichael Muré2019-12-101-0/+1
|\ | | | | bridge/gitlab: support self-hosted GitLab instance
| * bridge/gitlab: support self-hosted GitLab instanceamine2019-12-101-0/+1
| |
* | cmd: "user create" only assign the user identity if not setMichael Muré2019-12-101-1/+8
|/
* Merge pull request #271 from MichaelMure/bridge-credentialsMichael Muré2019-12-1017-67/+111
|\ | | | | bridge: huge refactor to accept multiple kind of credentials
| * bridge: huge refactor to accept multiple kind of credentialsMichael Muré2019-12-0817-67/+111
| |
* | bridge: fix incorrect last import time on context cancelMichael Muré2019-12-091-4/+14
|/
* bridge: move export event handling to the CLIMichael Muré2019-11-261-1/+15
|
* 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
|
* cli: rename "token" into "auth"Michael Muré2019-11-104-36/+34
|
* cli: add bridge token showMichael Muré2019-11-102-2/+38
|
* bridge: various improvement on the global token PRMichael Muré2019-11-103-29/+63
|
* bridge/core: store token in the global config and replace scopes with create ↵amine2019-11-093-34/+19
| | | | date
* tokens: use entity.Id as id typeamine2019-11-091-1/+1
|
* tokens: use a hash as token identifier instead of the token it selfamine2019-11-093-47/+36
|
* bridge: various cleanupsMichael Muré2019-11-091-8/+7
|
* commands: use token value as identifierAmine2019-11-092-6/+3
|
* bridge/core: use token id instead of nameAmine2019-11-093-10/+108
| | | | | commands: add bridge token rm/add commands: improve bridge token printing
* commands: add bridge token subcommandAmine2019-11-091-0/+64
|
* bridge: improvement on the import resume featureMichael Muré2019-11-031-16/+30
|
* commands: support bridge imports after a given date and resumable importsamine2019-11-032-23/+28
|
* Merge pull request #228 from ludovicm67/patch-cli-label-colorsMichael Muré2019-11-035-13/+31
|\ | | | | Display label colors in termui
| * switch to go-term-text to fix bad underflow for label renderingMichael Muré2019-11-035-20/+21
| |
| * ls: add labels color + formatting for commentsludovicm672019-10-281-5/+22
| |
* | bridge: use new repository configuration interfaceamine2019-11-011-1/+1
|/ | | | commands/webui: use new repository configuration interface