Commit Graph

367 Commits

Author SHA1 Message Date
Michael Muré
f23a7f07cc commands: remove compact style for "bug", as the width adaptive default renderer cover that usage 2023-01-17 22:04:34 +01:00
Michael Muré
9fc8dbf4e1 command: adapt the output of the bug list to the terminal size 2023-01-17 20:19:54 +01:00
Michael Muré
f011452a2d execenv: move terminal detection to Out, introduce the compagnion In 2023-01-17 20:02:31 +01:00
Steve Moyer
a73640150d
feat: use isatty to detect a Termios instead 2023-01-17 06:38:00 -05:00
Steve Moyer
1460377334
feat: detect os.Stdin/os.Stdout mode 2023-01-16 10:57:51 -05:00
Michael Muré
6e5ea512ac
Merge pull request #987 from MichaelMure/cache-progress-bar
commands: add a nice terminal progress bar when building the cache
2023-01-14 14:49:25 +01:00
Kalin Staykov
fc266b733c
add wipe sub-command that remove local bugs and identities 2023-01-11 14:58:58 +01:00
Michael Muré
7df34aa7a4
commands: add a nice terminal progress bar when building the cache
One issue remaining is that writing the cache takes significant time, but I don't know how to reflect that nicely to the user.
2023-01-11 14:31:22 +01:00
Michael Muré
ace0f05507
properly close files in edge cases in various places 2023-01-11 14:22:58 +01:00
Michael Muré
637071a84b
make go1.19 fmt happy 2023-01-11 13:28:07 +01:00
Steve Moyer
e4707cd8d5
fix(commands): run tests in ./commands/... without ANSI color
Resolves #926
2023-01-07 11:01:35 -05:00
Michael Muré
5844dd0a6a
commands: share JSON creation 2022-12-29 12:53:06 +01:00
Michael Muré
c9009b5299
commands: don't double build the lamport clocks 2022-12-29 10:26:47 +01:00
Michael Muré
d11ea5c2ad
Merge pull request #962 from MichaelMure/select-completion
commands: generic "select" code, move bug completion in bugcmd
2022-12-27 19:48:19 +01:00
Michael Muré
e920987860
commands: generic "select" code, move bug completion in bugcmd 2022-12-27 19:40:40 +01:00
Michael Muré
b27958758f
cache: simplify cache building events handling 2022-12-27 19:39:09 +01:00
Michael Muré
d5b07f4837
commands: move bug specific input code into commands/bug/input 2022-12-27 17:23:56 +01:00
Michael Muré
13a7a59917
cache: tie the last printf in an event to make the core print free 2022-12-27 11:19:45 +01:00
Steve Moyer
f94616ec76
Merge pull request #936 from MichaelMure/feat/935/disambiguate-config-errors
feat(935): disambiguate config errors
2022-12-23 07:16:36 -05:00
Michael Muré
9591110082
cache: fix some bugs after refactor 2022-12-23 01:41:03 +01:00
Michael Muré
d65e8837aa
cache: generic withSnapshot, some cleanup 2022-12-22 00:48:00 +01:00
Michael Muré
9b98fc0648
cache: tie up the refactor up to compiling 2022-12-21 21:54:36 +01:00
Michael Muré
f2def3a933
WIP 2022-12-19 18:09:59 +01:00
Michael Muré
0ac39a7ab5
WIP 2022-11-28 17:20:25 +01:00
Steve Moyer
64c18b15a4
feat: wrap ErrNoConfigEntry to report missing key
Resolves #935.
2022-11-27 20:51:37 -05:00
Michael Muré
acc9a6f3a6
commands: reorg into different packages 2022-11-20 17:18:09 +01:00
Michael Muré
3c6ebc2bfd core: bubble up the comment ID when created, or edited the first comment 2022-11-13 12:31:38 +01:00
Michael Muré
55a2e8e448 doc: fix incorrect indentation
fix #905
2022-10-22 15:56:36 +02:00
Steve Moyer
0ffa79ef13
feat(530) make label commands consistent 2022-09-25 15:22:03 -04:00
Steve Moyer
6c9a0d77df
test(863): fix test for full id instead of "human" 2022-09-25 09:17:32 -04:00
Steve Moyer
10ba2246f9
refactor(git-bug-863): merge ls-id into ls
The "ls" command allows filtering and sorting and already features different output
formatters.  Merging "ls-id" into "ls" cleans up the command hierarchy and allows
users to take advantage of these querying features.

Resolves #863.
2022-09-25 08:05:48 -04:00
Steve Moyer
ccb71fea57
Merge pull request #855 from MichaelMure/fix-850-ineffective-comment-edit
test(850): add tests for `git-bug comment edit` has no effect
2022-08-23 14:01:44 -04:00
Steve Moyer
c4a4d457f7
fix(850): normalize Windows line endings -> *nix (golden files) 2022-08-23 11:22:42 -04:00
Steve Moyer
0f885d4fb5
fix(850): normalize Windows line endings -> *nix 2022-08-23 11:02:23 -04:00
Steve Moyer
ff1b7448c9
fix(850): merge in CombinedId from 664 2022-08-23 10:40:56 -04:00
Steve Moyer
7ba98bfadc
Merge branch 'master' into fix-850-ineffective-comment-edit 2022-08-23 10:33:19 -04:00
Michael Muré
8d11e620a3
webui: add a flag to log handling errors 2022-08-23 15:09:31 +02:00
Michael Muré
45b04351d8
bug: have a type for combined ids, fix https://github.com/MichaelMure/git-bug/issues/653 2022-08-22 13:25:26 +02:00
Michael Muré
8818d091e8
move bug.Status in entities/common for reuse 2022-08-20 10:52:11 +02:00
Steve Moyer
2c2c449187
fix(850): remove obsolete test logging 2022-08-19 19:09:42 -04:00
Steve Moyer
7a91eb7e1d
tests(850): add tests for comment ls, add and edit 2022-08-19 13:19:02 -04:00
Michael Muré
5511c230b6
move {bug,identity} to /entities, move input to /commands 2022-08-18 23:44:06 +02:00
Steve Moyer
870fe69362
fix(836): revert to older test harness 2022-08-18 06:29:51 -04:00
Steve Moyer
a5802792ec
feat(836): updates default ls formatter for TSV output
Resolves #836
2022-08-18 06:18:55 -04:00
Steve Moyer
d3f2fb0d18
docs(847): add compact to docs and bash for ls command's format flag 2022-08-16 08:01:17 -04:00
Steve Moyer
6fc6a0f0ab
test(809): remove reliance on repo's filesystem 2022-06-22 10:38:09 -04:00
Steve Moyer
f3d316d16c
test(809): remove remaining calls to InitGoRepo in tests
Note that examples still need to shown how a developer would use the library.
2022-06-16 19:45:51 -04:00
Steve Moyer
1d4667c825
refactor(809): eliminate need to defer CleanupTestRepos() 2022-06-16 09:02:52 -04:00
Steve Moyer
d853a6fbc9
test(778): simplify and guarantee backend cleanup 2022-06-15 10:23:33 -04:00
Steve Moyer
0a9aaa9442
refactor(778): test only command implementations 2022-06-15 09:07:00 -04:00