Commit Graph

34 Commits

Author SHA1 Message Date
Michael Muré
f25690db47
completion: use the correct GenBashCompletionV2 instead of the legacy function 2022-05-01 10:54:13 +02:00
vince
36f300cb35
Add the 'rm' command
This commit adds a command that removes a bug from the repository, given a prefix.
2020-07-28 14:30:05 +02:00
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é
88ad7e606f
repository: remove tie to Bug, improved and reusable testing
- 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.
2020-06-26 19:14:22 +02:00
Wes Turner
25d633d5b0
DOC: commands/root.go: syntax 2020-05-01 00:36:01 +02:00
Michael Muré
b92adfcb5f
bridge: huge refactor to accept multiple kind of credentials 2019-12-08 21:28:27 +01:00
Amine
e5b33ca39c
commands: silence usage when cobra commands return an error 2019-09-06 11:01:09 +02:00
Michael Muré
bdf8523dc0 commands: only return the error (not the function help) when no identity is set
... to avoid misleading a user into thinking the usage was incorrect
2019-03-27 21:54:58 +01:00
Michael Muré
2fd5f71b59
commands: add a "." at the end of Short commands usage 2019-03-01 22:52:52 +01:00
Michael Muré
b8caddddc7
identity: some UX cleanup 2019-03-01 22:40:28 +01:00
Michael Muré
59ea2e018e add a "version" command with various outputs, including the git hash and tag 2019-02-20 21:56:33 +01:00
Michael Muré
2ab2412771
version 0.4.0 2018-10-21 12:33:08 +02:00
Michael Muré
b08e28e67e
commands: fix "comment add" flags set on the wrong command 2018-10-17 20:47:31 +02: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
Marc Chantreux
fa23ccc5e5 a better introduction message for the help page 2018-10-17 20:05:46 +02:00
Michael Muré
82eaceffc1
repo: split the Repo interface to avoid abstraction leak in RepoCache 2018-09-21 18:53:37 +02:00
Michael Muré
cfce3a9914
commands: description cleanup 2018-09-21 13:37:22 +02:00
Michael Muré
6f5d433e33
docs & cleaning 2018-09-16 13:50:53 +02:00
Michael Muré
ad59f77fd4
version 0.3.0 2018-09-13 18:05:13 +02:00
Michael Muré
fb0f5530f1
catch a lot of error not being checked 2018-09-13 12:43:47 +02:00
Michael Muré
9cbd5b4ee1
termui: allow to change the bug query 2018-09-11 19:28:32 +02:00
Michael Muré
6f1767d101
cmds: only print once the error 2018-09-06 17:31:09 +02:00
Michael Muré
7397c94d99
make CLI commands use the cache to lock the repo properly 2018-08-31 17:22:10 +02:00
Michael Muré
6d7dc465d8
cache: lock the repo with a pid file; automatic cleaning 2018-08-21 19:13:08 +02:00
Michael Muré
d959acc29d
version 0.2.0 2018-08-17 13:37:50 +02:00
Michael Muré
4c850b5989
cleanup go imports 2018-08-13 18:39:19 +02:00
Michael Muré
bb6fad3058
prepare a first version 2018-08-12 21:26:01 +02:00
Michael Muré
929d709364
bash completion: thanks to @tst2005, make the completion works for "git bug <command>" 2018-08-08 20:31:31 +02:00
Michael Muré
435be2b693
bug: add a Lamport logical clock to be able to sort bugs by creation time and edit time without having to rely on a timestamp 2018-08-06 20:31:20 +02:00
Michael Muré
87669e0f18
termui: use the editor to create a new bug 2018-07-31 16:44:23 +02:00
Michael Muré
302a69bfc5
use DisableAutoGenTag to not have to commit the documentation after each build 2018-07-20 15:57:21 +02:00
Michael Muré
e89f87624f
generate markdown documentation 2018-07-20 15:46:14 +02:00
Michael Muré
7f5922f905
rework all the commands to use cobra as a parser 2018-07-19 12:36:01 +02:00