lazygit/pkg/gui/controllers
Jesse Duffield 63dc07fded Construct arg vector manually rather than parse string
By constructing an arg vector manually, we no longer need to quote arguments

Mandate that args must be passed when building a command

Now you need to provide an args array when building a command.
There are a handful of places where we need to deal with a string,
such as with user-defined custom commands, and for those we now require
that at the callsite they use str.ToArgv to do that. I don't want
to provide a method out of the box for it because I want to discourage its
use.

For some reason we were invoking a command through a shell when amending a
commit, and I don't believe we needed to do that as there was nothing user-
supplied about the command. So I've switched to using a regular command out-
side the shell there
2023-05-23 19:49:19 +10:00
..
helpers Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
attach.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
base_controller.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
basic_commits_controller.go lots of changes 2023-04-30 13:19:53 +10:00
bisect_controller.go lots of changes 2023-04-30 13:19:53 +10:00
branches_controller.go lots of changes 2023-04-30 13:19:53 +10:00
command_log_controller.go lots of changes 2023-04-30 13:19:53 +10:00
commit_description_controller.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
commit_message_controller.go Retain commit message when cycling history 2023-04-30 13:19:54 +10:00
commits_files_controller.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
common.go lots of changes 2023-04-30 13:19:53 +10:00
confirmation_controller.go lots of changes 2023-04-30 13:19:53 +10:00
context_lines_controller.go lots of changes 2023-04-30 13:19:53 +10:00
custom_command_action.go move custom command action into its own file 2023-04-30 13:19:53 +10:00
custom_patch_options_menu_action.go Refactor interface for ApplyPatch 2023-05-20 20:54:39 +10:00
diffing_menu_action.go move diffing menu action to controller 2023-04-30 13:19:53 +10:00
files_controller.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
files_remove_controller.go lots of changes 2023-04-30 13:19:53 +10:00
filtering_menu_action.go Allow the selected line of a list view to be outside the visible area 2023-05-11 13:23:58 +02:00
git_flow_controller.go lots of changes 2023-04-30 13:19:53 +10:00
global_controller.go move toggle whitespace action to controllers package 2023-04-30 13:19:53 +10:00
jump_to_side_window_controller.go move side window actions to controllers package 2023-04-30 13:19:53 +10:00
list_controller.go Allow the selected line of a list view to be outside the visible area 2023-05-11 13:23:58 +02:00
local_commits_controller.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
menu_controller.go Apply strikethrough style to reserved keybindings in menus 2023-05-21 11:31:29 +10:00
merge_conflicts_controller.go lots of changes 2023-04-30 13:19:53 +10:00
options_menu_action.go move another action into controller 2023-04-30 13:19:53 +10:00
patch_building_controller.go lots of changes 2023-04-30 13:19:53 +10:00
patch_explorer_controller.go lots of changes 2023-04-30 13:19:53 +10:00
quit_actions.go move quit actions to controller 2023-04-30 13:19:53 +10:00
reflog_commits_controller.go lots of changes 2023-04-30 13:19:53 +10:00
remote_branches_controller.go lots of changes 2023-04-30 13:19:53 +10:00
remotes_controller.go lots of changes 2023-04-30 13:19:53 +10:00
screen_mode_actions.go move more actions into controller 2023-04-30 13:19:53 +10:00
side_window_controller.go move side window actions to controllers package 2023-04-30 13:19:53 +10:00
snake_controller.go lots of changes 2023-04-30 13:19:53 +10:00
staging_controller.go Refactor interface for ApplyPatch 2023-05-20 20:54:39 +10:00
stash_controller.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
status_controller.go lots of changes 2023-04-30 13:19:53 +10:00
sub_commits_controller.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
submodules_controller.go lots of changes 2023-04-30 13:19:53 +10:00
suggestions_controller.go lots of changes 2023-04-30 13:19:53 +10:00
switch_to_diff_files_controller.go lots of changes 2023-04-30 13:19:53 +10:00
switch_to_sub_commits_controller.go lots of changes 2023-04-30 13:19:53 +10:00
sync_controller.go lots of changes 2023-04-30 13:19:53 +10:00
tags_controller.go lots of changes 2023-04-30 13:19:53 +10:00
toggle_whitespace_action.go Remove the toast when toggling "ignore whitespace" 2023-05-20 12:58:32 +10:00
types.go introduce Ref interface 2022-04-02 17:04:42 +11:00
undo_controller.go lots of changes 2023-04-30 13:19:53 +10:00
vertical_scroll_controller.go lots of changes 2023-04-30 13:19:53 +10:00
workspace_reset_controller.go lots of changes 2023-04-30 13:19:53 +10:00