jesseduffield.lazygit/pkg/gui/services/custom_commands
Stefan Haller d82852a909 Change Refresh to not return an error
Refresh is one of those functions that shouldn't require error handling (similar
to triggering a redraw of the UI, see
https://github.com/jesseduffield/lazygit/issues/3887).

As far as I see, the only reason why Refresh can currently return an error is
that the Then function returns one. The actual refresh errors, e.g. from the git
calls that are made to fetch data, are already logged and swallowed. Most of the
Then functions do only UI stuff such as selecting a list item, and always return
nil; there's only one that can return an error (updating the rebase todo file in
LocalCommitsController.startInteractiveRebaseWithEdit); it's not a critical
error if this fails, it is only used for setting rebase todo items to "edit"
when you start an interactive rebase by pressing 'e' on a range selection of
commits. We simply log this error instead of returning it.
2025-07-02 16:09:42 +02:00
..
client.go Add commandMenu property to custom commands 2025-02-28 10:11:30 +01:00
handler_creator.go Change Refresh to not return an error 2025-07-02 16:09:42 +02:00
keybinding_creator.go Extract a method CustomCommand.GetDescription 2025-02-28 10:00:59 +01:00
menu_generator.go Support using command output directly in menuFromCommand custom command prompt 2023-05-29 22:52:16 +10:00
menu_generator_test.go Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
models.go Fix wrong comment 2025-02-28 10:00:59 +01:00
resolver.go Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
session_state_loader.go Make Commit.Parents a getter for an unexported parents field 2025-04-29 14:57:15 +02:00