summaryrefslogtreecommitdiffstatshomepage
path: root/commands
Commit message (Collapse)AuthorAge
* build: reduce complexity for setting the version (#1466)sudoforge2025-05-23
| | | | | | | | | | | | | | | | This change refactors the implementation of how the version is embedded in the binary to reduce the number of variables necessary to determine the version information from 3 to 1. The legacy build variables are still supported, however, a warning will be emitted instructing users to contact their package maintainer. The legacy GitExacTag variable, if present, will be used to set main.version if it is undefined. This ensures that unmigrated package builds will continue to provide the correct version information. The legacy build variables will be supported until 0.12.0, giving package maintainers some time to migrate. Change-Id: I05fea97169ea1af87b198174afe5b6663f860fd8
* refactor(cli)!: remove the 'commands' command (#1462)sudoforge2025-05-19
| | | | | | | | | | | | | | This change removes the 'commands' command. This command historically printed out all of the commands, optionally with help text. This is superfluous, as we ship a manpage for each of the common shells, have markdown documentation available in the repository, and provide help text via the `--help` flag. BREAKING-CHANGE: The `commands` command has been removed. There is no replacement planned. Users are encouraged to run `--help`, view the markdown documentation available online, or run `man git-bug` to view the manpage in your terminal. Change-Id: I8bbfb03c03c820ec0b56549e59ab76826c45b9cc
* fix(cli): ignore missing sections when removing configuration (#1455)sudoforge2025-05-18
| | | | | | | | | | This change fixes an error typically encountered in the `git-bug-wipe` command, caused by overly zealous implementations of //repository:config.go%ConfigWrite.RemoveAll(). This change refactors these implementations to only attempt to remove sections that exist, and ignore non-existent sections. Closes: #1451 Change-Id: I66e710239915c8601dd70a78ae65eb625e093ef6
* fix: use -0700 when formatting time (#1388)sudoforge2025-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | +0200 is not a valid reference identifier for the time format string, which requires a valid layout [0] using the reference time `01/02 03:04:05PM '06 -0700`. As the documentation notes: > It is a regrettable historic error that the date uses the American > convention of putting the numerical month before the day. This, combined with `-0700` being hardcoded into the layout requirements is what likely led to the confusion that caused this issue. This change is a fix for all `Time.Format()` calls, adjusting the time format in place to use the correct tzdata. As a future potential improvement, we should consider refactoring the format to use one of the constants in the time package that are exported for the different predefined formatting strings. This is not being done as part of this change because the current formatting string used in these calls does not match exactly with any of the predefined format strings. ... it isn't clear to me why this passes on CI. Using `+0200` to reference the timezone in the format string is invalid according to the `time` package documentation. [0]: https://pkg.go.dev/time#Layout Closes: #1387 Change-Id: Ifa198266c407524f7ef33ee33cf94ce9d0158f45
* core: make label a common type, in a similar fashion as for status (#1252)Michael Muré2024-08-25
| | | This will be useful for Board, and likely code review support later
* feat: update references to the git-bug organization (#1249)sudoforge2024-08-24
| | | | | | | | The repository was recently moved to the git-bug organization on github. This change refactors references to the repository to ensure that they use the updated owner URI. Closes: #1243 Change-Id: I799712354c6ba25cdd8b06286275850c52efe6ff
* chore: remove refs to deprecated io/ioutilguoguangwu2024-07-23
| | | | | | | | Signed-off-by: guoguangwu <guoguangwug@gmail.com> chore: remove refs to deprecated io/ioutil Signed-off-by: guoguangwu <guoguangwug@gmail.com>
* execenv: fix some cache building progress bar artifactMichael Muré2023-03-18
| | | | Still one issue remaining: the last bar doesn't dissapear. Looks like a mbp issue.
* webui: also teardown cleanly on SIGTERMMichael Muré2023-03-04
|
* Merge pull request #1001 from MichaelMure/style/clean-up-linter-issuesMichael Muré2023-01-22
|\ | | | | style: clean up linter complaints
| * docs(commands): try to make cleaned argument use more obviousSteve Moyer2023-01-20
| |
| * style: resolve PR commentsSteve Moyer2023-01-19
| |
| * style: clean up linter complaintsSteve Moyer2023-01-18
| |
* | commands: add a helper to generate testing regex for CLI outputMichael Muré2023-01-22
| |
* | Merge pull request #991 from vasser/fix/issue-928-version-infoMichael Muré2023-01-19
|\ \ | | | | | | Fixed version info be set when go install
| * | version: code cleanup, fix some edge casesMichael Muré2023-01-19
| | |
| * | dirty should be boolvasser2023-01-18
| | |
| * | address PR reviewvasser2023-01-18
| | |
| * | New approach to define the versionvasser2023-01-15
| | |
| * | Fixed version info be set when go installvasser2023-01-13
| | |
* | | commands: different pattern to detect changed flagsMichael Muré2023-01-18
| |/ |/|
* | fix(commands): replace missing importSteve Moyer2023-01-17
| |
* | Merge branch 'master' of github.com:MichaelMure/git-bugSteve Moyer2023-01-17
|\ \
| * | commands: remove compact style for "bug", as the width adaptive default ↵Michael Muré2023-01-17
| | | | | | | | | | | | renderer cover that usage
| * | command: adapt the output of the bug list to the terminal sizeMichael Muré2023-01-17
| | |
* | | fix(commands): create env.Env once for all Cobra commandsSteve Moyer2023-01-17
|/ / | | | | | | Resolves #996
* | execenv: move terminal detection to Out, introduce the compagnion InMichael Muré2023-01-17
| |
* | feat: use isatty to detect a Termios insteadSteve Moyer2023-01-17
| |
* | feat: detect os.Stdin/os.Stdout modeSteve Moyer2023-01-16
| |
* | Merge pull request #987 from MichaelMure/cache-progress-barMichael Muré2023-01-14
|\ \ | | | | | | commands: add a nice terminal progress bar when building the cache
| * | commands: add a nice terminal progress bar when building the cacheMichael Muré2023-01-11
| |/ | | | | | | One issue remaining is that writing the cache takes significant time, but I don't know how to reflect that nicely to the user.
* / add wipe sub-command that remove local bugs and identitiesKalin Staykov2023-01-11
|/
* properly close files in edge cases in various placesMichael Muré2023-01-11
|
* make go1.19 fmt happyMichael Muré2023-01-11
|
* fix(commands): run tests in ./commands/... without ANSI colorSteve Moyer2023-01-07
| | | | Resolves #926
* commands: share JSON creationMichael Muré2022-12-29
|
* commands: don't double build the lamport clocksMichael Muré2022-12-29
|
* Merge pull request #962 from MichaelMure/select-completionMichael Muré2022-12-27
|\ | | | | commands: generic "select" code, move bug completion in bugcmd
| * commands: generic "select" code, move bug completion in bugcmdMichael Muré2022-12-27
| |
* | cache: simplify cache building events handlingMichael Muré2022-12-27
|/
* commands: move bug specific input code into commands/bug/inputMichael Muré2022-12-27
|
* cache: tie the last printf in an event to make the core print freeMichael Muré2022-12-27
|
* Merge pull request #936 from MichaelMure/feat/935/disambiguate-config-errorsSteve Moyer2022-12-23
|\ | | | | feat(935): disambiguate config errors
| * feat: wrap ErrNoConfigEntry to report missing keySteve Moyer2022-11-27
| | | | | | | | Resolves #935.
* | cache: fix some bugs after refactorMichael Muré2022-12-23
| |
* | cache: generic withSnapshot, some cleanupMichael Muré2022-12-22
| |
* | cache: tie up the refactor up to compilingMichael Muré2022-12-21
| |
* | WIPMichael Muré2022-12-19
| |
* | WIPMichael Muré2022-11-28
|/
* commands: reorg into different packagesMichael Muré2022-11-20
|