aboutsummaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* Command ls: Add compact formatSascha2021-08-171-0/+28
|
* commands: proper backend close on RunE errorMichael Muré2021-05-0935-200/+174
|
* CLI: Add non-interactive option to interactive commands (#651)Sascha2021-05-096-23/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add option to skip the AvatarURL input request Using an empty string for the avatar cli flag e.g. `git-bug user create -a ""` will still result in a prompt. As the avatar URL is an optional option, it should be possible to skip asking for it entirely. Otherwise automated user creation via a script must make use of pipe hacks. * Add global --non-interactive cmdline option * Replace --skipAvatar for --non-interactive option * Cmd BugAdd: respect non-interactive option * Cmd bridge configure: respect non-interactive opt * Cmd CommentAdd: respect non-interactive option * Cmd CommentEdit: respect non-interactive option * Cmd TermUI: respect non-interactive option * Cmd TitleEdit: respect non-interactive option * Remove global non-interactive option * Cmd UserCreate: Use local non-interactive option * Cmd BugAdd: Use local non-interactive option * Cmd BridgeConfigure: Use local non-interactive option * Cmd CommentAdd: Use local non-interactive option * Cmd CommentEdit: Use local non-interactive option * Cmd TermUI: Drop non-interactive option It should be obviouse that the termui is an interactive command. * Cmd TitleEdit: Use local non-interactive option * Update docs * Bridge GitHub: respect non-interactive option * Bridge GitLab: respect non-interactive option * Bridge Jira: respect non-interactive and token opt * Fix failing compilation * Bridge launchpad: respect non-interactive option * bridge: isNonInteractive --> interactive Co-authored-by: Michael Muré <batolettre@gmail.com>
* CLI - allow user create without prompt (#650)Hariharan2021-04-251-20/+39
| | | | | | | | | | | * CLI - allow user create without prompt. Fixes #577 * Update commands/user_create.go email message Co-authored-by: Michael Muré <batolettre@gmail.com> * Update docs Co-authored-by: Michael Muré <batolettre@gmail.com>
* make sure every text input is safe and validatedMichael Muré2021-04-175-5/+13
| | | | fix #630
* Merge remote-tracking branch 'origin/master' into dag-entityMichael Muré2021-03-292-3/+29
|\
| * commands: minor fixes for the webui open with queryMichael Muré2021-03-071-4/+5
| | | | | | | | | | | | - go fmt - add a shorthand - fix displayed webUI URL in the terminal
| * webui: allow specifying the initial queryMiklos Vajna2021-03-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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>.
| * Add option to specify host addressSascha2021-02-281-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '--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.
| * Add ability to search by arbitrary metadataMiklos Vajna2021-02-211-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | 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>.
* | command: fix "comment edit" usageMichael Muré2021-02-141-1/+1
| |
* | Change the comment ID to use both bug and comment ID references.vince2021-02-143-1/+74
| | | | | | | | | | Add comment edit command This commit adds the comment edit command, which provides a CLI tool that allows a user to edit a comment.
* | deal with the previous changesMichael Muré2021-02-142-6/+10
|/
* repo: move bleve thereMichael Muré2020-12-081-1/+4
|
* repo: finish RepoStorage moveMichael Muré2020-12-082-18/+6
|
* Update docs for full text searchMike Goldin2020-11-171-1/+7
|
* ls: fix query quotationMichael Muré2020-11-171-27/+43
|
* identity: remove support for legacy identityMichael Muré2020-10-041-28/+12
|
* repo: use go-git in more places, fix pushMichael Muré2020-10-041-1/+1
|
* use go-git by default!Michael Muré2020-09-291-1/+1
|
* repo: implement local/global/any config everywhereMichael Muré2020-09-291-1/+1
|
* command: match the output in ls and in the termuiMichael Muré2020-09-271-3/+6
|
* Fix 'no description' readability in terminal with bright backgroundZdenek Crha2020-09-271-1/+1
| | | | | | | | | | | | | | | | | The rendering of color for 'No description provided' text is broken on bright terminals - it sets black background which together with default black forground color renders opaque rectangle. The GreyBold color alias is broken too - name suggests bold gray forground color, but actually sets bold default fg color with black bacground. First make color alias consistent. Rename it to BlackBold and have it set bold black fg color (same as similar *Bold aliases). Second, update all places which use it to render text to also use white background to prevent it from disappering in terminals with black background color.
* commands: cleanup the command's usage to avoid warnings when generating the docMichael Muré2020-07-2825-53/+53
|
* Update docsvince2020-07-281-1/+1
|
* Remove need to specify remotevince2020-07-281-9/+5
| | | | This commit makes the removeBug command use the listRefs repo command to search for the bug, eliminating the need to input the remote the bug came from.
* Move args parsing out of repo cachevince2020-07-281-1/+11
|
* Allow user to delete remote bugsvince2020-07-281-15/+7
|
* Add the 'rm' commandvince2020-07-282-0/+46
| | | | This commit adds a command that removes a bug from the repository, given a prefix.
* Merge pull request #427 from wavexx/trim_titlesMichael Muré2020-07-141-2/+2
|\ | | | | Trim titles in list views
| * Trim titles in list viewsYuri D'Elia2020-07-131-2/+2
| |
* | ls: minor code improvementsMichael Muré2020-07-141-21/+20
| |
* | ls --format org-mode enhancementsDima Gerasimov2020-07-121-8/+20
|/ | | | | | | - 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
* commands: fix segfault with badly loaded backendMichael Muré2020-07-071-1/+1
|
* commands: open and close the backend in a single place, simplify commandsMichael Muré2020-06-2834-480/+304
|
* commands: refactor to avoid globalsMichael Muré2020-06-2838-1111/+1328
|
* Reorganize the webUI and API codeMichael Muré2020-06-271-156/+20
| | | | | | | | | | Included in the changes: - create a new /api root package to hold all API code, migrate /graphql in there - git API handlers all use the cache instead of the repo directly - git API handlers are now tested - git API handlers now require a "repo" mux parameter - lots of untangling of API/handlers/middleware - less code in commands/webui.go
* Use ErrNotAuthenticatedLuke Granger-Brown2020-06-271-5/+5
|
* Pull out context-stuff from identity into graphqlidentity packageLuke Granger-Brown2020-06-271-4/+9
|
* Change graphql Go handlers to pluck identity out of context instead.Luke Granger-Brown2020-06-271-6/+21
|
* Verify that we have an identity only in read-write modeLuke Granger-Brown2020-06-271-1/+9
|
* Don't permit file uploads in read-only modeLuke Granger-Brown2020-06-271-1/+3
|
* Add support for read-only mode for web UI.Luke Granger-Brown2020-06-271-4/+7
| | | | Fixes #402.
* 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