Commit Graph

57 Commits

Author SHA1 Message Date
Michael Muré
3a819525d7
commands: minor fixes for the webui open with query
- go fmt
- add a shorthand
- fix displayed webUI URL in the terminal
2021-03-07 21:44:48 +01:00
Miklos Vajna
626ec9835b webui: allow specifying the initial query
Example use-case: given a github URL in a source code comment or commit
message, one can now run:

git bug webui --query 'metadata:github-url:"https://github.com/author/myproject/issues/42"'

on the commandline to look up the details of that issue on the web ui
quickly, offline.

Fixes <https://github.com/MichaelMure/git-bug/issues/592>.
2021-03-07 14:11:04 +01:00
Sascha
ea329aed69 Add option to specify host address
'--host'-cmdline-option is added to the webui command.

Previously, the WebUI couldn't be hosted inside of a container. As the
WebUI-server only listend per default to localhost and there was no
option to change the address, the server should listend to. This means,
that the WebUI was only reachable from localhost. So only from inside of
the container but never from outside.
The '--host'-option allows to set the IP address or a hostname
which the WebUI-server should listen to. E.g. by setting 0.0.0.0 or ::
as address.

Update documentation for new option.

Update shell completion for new option.

Compilation seems to add another go-gitlab version.
2021-02-28 21:20:15 +01: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
6543
86faedc966
Vendor: upgrade spf13/cobra to v1.1.1 (#479)
* build(deps): bump github.com/spf13/cobra from 1.0.0 to 1.1.1

* update doc (man & md)

* update bash|fish|zsh completion
2020-10-27 14:38:55 +01: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
Luke Granger-Brown
4a28f25347
Add support for read-only mode for web UI.
Fixes #402.
2020-06-27 22:56:10 +02:00
Michael Muré
1d06244c82
cmds: cleanup and re-generate files 2020-06-24 15:10:57 +02: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é
6fd7934f53
update cobra 2020-06-14 19:43:58 +02:00
Michael Muré
4559af5e71
update auto-generated files 2020-02-23 14:38:02 +01:00
Michael Muré
fe3d5c95e4
bridges: massive refactor
- automatic flag validation and warning
- generalized prompt
- cleanups
2020-02-15 02:55:19 +01:00
Michael Muré
646fd681ff
it compiles \o/ 2020-02-08 17:19:57 +01:00
amine
f6b4830c0b bridge/gitlab: support self-hosted GitLab instance 2019-12-10 21:05:55 +01:00
Michael Muré
b92adfcb5f
bridge: huge refactor to accept multiple kind of credentials 2019-12-08 21:28:27 +01:00
Michael Muré
afe69d0c93 github: tiny cleanups of the configurator 2019-11-26 19:46:50 +01:00
Michael Muré
e0b15ee764
cli: rename "token" into "auth" 2019-11-10 17:33:44 +01:00
Michael Muré
f8cf3fea03
cli: add bridge token show 2019-11-10 15:50:56 +01:00
Michael Muré
e2445edcb9
bridge: various improvement on the global token PR 2019-11-10 14:53:40 +01:00
amine
45653bd31d token: regenerate documentation and fix imports 2019-11-09 14:55:27 +01:00
Michael Muré
3984919a3d bridge: various cleanups 2019-11-09 13:26:48 +01:00
amine
614bc5a2c5 commands: support bridge imports after a given date and resumable imports 2019-11-03 17:21:27 +01:00
Amine Hilaly
77e60aceea
commands: add bridge configure completion scripts 2019-08-31 23:02:20 +02:00
Michael Muré
c7792a5d12
commands: add a "tui" alias for "termui" 2019-08-31 13:25:44 +02:00
Amine Hilaly
e511f3d885
[misc] update man docs and completion scripts
[cache] BugCache: Fix set metadata raw

[bridge/github] Fix graphql input objects
2019-06-24 21:30:45 +02:00
Amine Hilaly
d064a7127e
Update man pages and bash_completion 2019-05-29 22:58:01 +02:00
Michael Muré
8bfc65df6c commands: add flags/config to control the automatic opening in the default browser 2019-05-27 21:47:26 +02:00
Michael Muré
5eeeae7cdf
commands: fix ls not displaying the new Identities properly 2019-04-11 20:04:44 +02:00
Michael Muré
5b0a92dea4 commands: add a --field flag to "git bug user" to display users details individually 2019-04-03 21:33:53 +02:00
Michael Muré
408654514e
cache: make the title filter case insensitive 2019-03-03 15:23:20 +01:00
Michael Muré
c235d89d36
commands: show the last modification time in "user" 2019-03-01 22:52:54 +01:00
Michael Muré
304a334930
commands: add a "user adopt" command to use an existing identity 2019-03-01 22:48:51 +01:00
Michael Muré
7a80d8f849
commands: add a super-fast "user ls" command 2019-03-01 22:48:51 +01:00
Michael Muré
864eae0d6b
identity: work on higher level now, cache, first two identity commands 2019-03-01 22:40:25 +01:00
Michael Muré
844616baf8
identity: more progress and fixes 2019-03-01 22:40:21 +01:00
Michael Muré
5e4a656f85
Merge pull request #97 from sladyn98/ls_id_branch
A command to list matching bug id from a prefix
2019-02-25 20:18:15 +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
Sladyn
f70f38c8ee ls-id.go: Add ls-id [<prefix>] command
This file adds the ls-id command which returns
the bug id matching the prefix the user enters.
If no prefix entered it lists all the BugId's

Closes https://github.com/MichaelMure/git-bug/issues/47
2019-02-14 00:32:40 +05:30
Michael Muré
43d0fe5cae
commands: show: change for a single valued --field flag 2019-01-07 23:08:48 +01:00
Michael Muré
b08e28e67e
commands: fix "comment add" flags set on the wrong command 2018-10-17 20:47:31 +02:00
Michael Muré
04ddeef90f
commands: add a "deselect" command to deselect a previously selected bug 2018-09-26 16:49:00 +02:00
Michael Muré
2282cbb595
commands: add "bridge pull" 2018-09-24 17:11:50 +02:00
Michael Muré
061e83d4b4
commands: add "bridge rm" 2018-09-24 16:24:38 +02:00
Michael Muré
43bda202fa
commands: add the "bridge" and "bridge configure" commands 2018-09-24 15:25:57 +02:00
Michael Muré
6e44759413
commands: add a "ls-labels" command that output valid labels 2018-09-21 14:02:05 +02:00
Michael Muré
5f9fd2a2d9
commands: add a "select" command to select a bug for future implicit use 2018-09-18 13:17:39 +02:00
Michael Muré
5eaf9e83e7
commands: add a "label rm" command to remove labels from a bug 2018-09-17 14:36:51 +02:00
Michael Muré
2965b70f4f
commands: add a "label add" command to add new label to a bug 2018-09-17 14:33:34 +02:00
Michael Muré
cc086ebae9
commands: make "label" display the current labels 2018-09-17 14:32:33 +02:00
Michael Muré
dad61892ce
commands: migrate the open/close commands under the "status" command 2018-09-16 14:29:14 +02:00