Commit Graph

65 Commits

Author SHA1 Message Date
Michael Muré
8818d091e8
move bug.Status in entities/common for reuse 2022-08-20 10:52:11 +02:00
Michael Muré
5511c230b6
move {bug,identity} to /entities, move input to /commands 2022-08-18 23:44:06 +02: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
Michael Muré
b9991d84b9
ls: fix incorrect query parsing with quotes escaped by the shell 2022-05-01 12:31:50 +02:00
Johannes Altmanninger
bc6ba02bd8
Add command-specific argument completions
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
2022-05-01 10:54:13 +02:00
Sascha
6d0331e112 Command ls: Add compact format 2021-08-17 17:07:36 +02:00
Michael Muré
271dc1334c
commands: proper backend close on RunE error 2021-05-09 11:33:20 +02:00
Miklos Vajna
cb61245078 Add ability to search by arbitrary metadata
Example:

~/git/git-bug/git-bug ls --metadata github-url=https://github.com/author/myproject/issues/42

or

~/git/git-bug/git-bug ls metadata:github-url:\"https://github.com/author/myproject/issues/42\"

Fixes the cmdline part of <https://github.com/MichaelMure/git-bug/issues/567>.
2021-02-21 14:15:50 +01:00
Michael Muré
c884d557bf
repo: move bleve there 2020-12-08 14:42:13 +01:00
Mike Goldin
ee3841155e
Update docs for full text search 2020-11-17 08:32:19 -05:00
Michael Muré
9bea84e232
ls: fix query quotation 2020-11-17 08:09:51 -05:00
Michael Muré
499dbc0a03
identity: remove support for legacy identity 2020-10-04 20:50:15 +02:00
Michael Muré
148b335dd3
command: match the output in ls and in the termui 2020-09-27 21:30:13 +02:00
Michael Muré
ae5c0967ce commands: cleanup the command's usage to avoid warnings when generating the doc 2020-07-28 20:24:24 +02:00
Michael Muré
b4158dbd9e
Merge pull request #427 from wavexx/trim_titles
Trim titles in list views
2020-07-14 19:21:45 +02:00
Michael Muré
5c823a7024
ls: minor code improvements 2020-07-14 19:13:46 +02:00
Yuri D'Elia
54d4307a2e Trim titles in list views 2020-07-13 13:14:47 +02:00
Dima Gerasimov
efe6ea3371 ls --format org-mode enhancements
- fix and align OPEN/CLOSED states
- fix org-mode links format
- santize tags (org-mode only allows _ and @ as special characters)
- format datetimes as org-mode
2020-07-12 17:58:15 +01: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é
aab3a04d0c
bug: harmonize how time are used, fix some issues in command special formats
This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.
2020-06-25 23:18:17 +02:00
Michael Muré
1d06244c82
cmds: cleanup and re-generate files 2020-06-24 15:10:57 +02:00
vince
8eb004b405 Clean up code and fix suggestions 2020-06-24 10:22:32 +08:00
vince
fc3f6540b8 Add org-mode formatting option
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.
2020-06-23 17:51:42 +08:00
vince
cd8352edde Add output formatting support to the 'show' and 'user ls' commands
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
2020-06-21 13:51:48 +08:00
vince
87eeba413d Print JSON as a well-formed object
This prints all the bugs in a JSON array instead of one by one.
2020-06-18 20:12:26 +08:00
vince
de5565b5f9
ls: Add support to ls dump bug information in specific formats
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'.
2020-06-16 15:05:48 +02:00
Michael Muré
314fcbb229
query: no need for an ast package 2020-03-28 17:13:28 +01:00
Michael Muré
5e4dc87ffe
cache: replace the all-in-one query parser by a complete one with AST/lexer/parser 2020-03-28 17:13:27 +01:00
Michael Muré
f72a9dc62b
switch to go-term-text to fix bad underflow for label rendering 2019-11-03 14:00:35 +01:00
ludovicm67
809abf9244
ls: add labels color + formatting for comments 2019-10-28 12:43:24 +01:00
Michael Muré
99b5c58d43 finish the refactoring for the dedicated identifier type 2019-08-12 16:12:14 +02:00
Yongwen Zhuang
5f0123d138
commands: ls fix CJK characters out of alignment
#85
2019-05-14 23:01:49 +08:00
Michael Muré
5eeeae7cdf
commands: fix ls not displaying the new Identities properly 2019-04-11 20:04:44 +02:00
Amine Hilaly
14ce66f0dd integrate actors and participant filters into ls and show commands 2019-04-05 17:18:47 +02:00
Sladyn
f1d5ca4ff4 Rebased and updated. 2019-03-02 23:58:15 +05:30
Sladyn
beecd2dbe4 Made requested changes
Made changes to the doc files and remaining areas which required updation.
2019-03-02 23:06:55 +05:30
Sladyn
43e56692e8 ls.go:git bug ls should be faster
Added `Title` to BugExcerpt
Added `TitleFilter` to `filter.go`
Used BugExcerpt in `ls` command to improve performance.

Closes https://github.com/MichaelMure/git-bug/issues/98
2019-03-02 23:04:45 +05:30
Michael Muré
2fd5f71b59
commands: add a "." at the end of Short commands usage 2019-03-01 22:52:52 +01:00
Michael Muré
844616baf8
identity: more progress and fixes 2019-03-01 22:40:21 +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é
7cb7994cda
github: also pull users email 2018-10-07 18:27:23 +02:00
Michael Muré
d71411f917
commands: ls now accept queries without quote 2018-09-19 21:51:16 +02:00
Michael Muré
3605887345 reorganize package for a more idomatic go 2018-09-11 22:14:46 +02:00
Michael Muré
9bb980e9de
ls: support expressing a query with flags as well 2018-09-10 18:18:00 +02:00
Michael Muré
0dc705336e
cache: properly parse and clean qualifier with multi word 2018-09-10 11:12:22 +02:00
Michael Muré
dd0823dd2b
ls: accept a query to sort and filter the list 2018-09-09 20:22:46 +02:00