lazygit/pkg/gui/controllers/helpers
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
..
amend_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
app_status_helper.go lots of changes 2023-04-30 13:19:53 +10:00
bisect_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
cherry_pick_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
commits_helper.go Retain commit message when cycling history 2023-04-30 13:19:54 +10:00
confirmation_helper.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
credentials_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
diff_helper.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
files_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
gpg_helper.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
helpers.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
host_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
merge_and_rebase_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
merge_conflicts_helper.go Fix race condition 2023-05-16 21:01:38 +10:00
mode_helper.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
patch_building_helper.go Disregard the "ignore whitespace" option in the patch building panel 2023-05-19 18:22:28 +02:00
record_directory_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
refresh_helper.go Refresh staging panel when committing 2023-04-30 13:19:54 +10:00
refs_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
repos_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
snake_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
staging_helper.go Refresh staging panel when committing 2023-04-30 13:19:54 +10:00
suggestions_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
tags_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
update_helper.go appease linter 2023-04-30 13:19:53 +10:00
upstream_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
upstream_helper_test.go Add option to (un)set upstream for a local branch 2022-04-11 14:04:06 +02:00
view_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
window_arrangement_helper.go move window arrangement helper 2023-04-30 13:19:53 +10:00
window_helper.go move side window actions to controllers package 2023-04-30 13:19:53 +10:00
working_tree_helper.go Merge pull request #2612 from longlhh90/fix-commit-prefixes-with-empty-commit-message 2023-05-17 17:12:05 +10:00