lazygit/pkg/commands/oscommands
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
..
cmd_obj.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
cmd_obj_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
cmd_obj_runner.go Fix checking for credentials performance (#2452) 2023-03-19 11:08:54 +11:00
cmd_obj_runner_default.go more refactoring 2022-01-09 14:09:53 +11:00
cmd_obj_runner_test.go Fix checking for credentials performance (#2452) 2023-03-19 11:08:54 +11:00
cmd_obj_runner_win.go add deadlock mutex package 2022-08-07 11:16:14 +10:00
cmd_obj_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
copy.go no more naked returns 2022-03-25 23:27:28 +11:00
dummies.go use tempdir in tests to prevent polluting worktree 2022-11-13 14:10:21 +11:00
fake_cmd_obj_runner.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
gui_io.go formatter 2022-09-17 15:10:41 -07:00
os.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
os_default_platform.go update tests 2022-01-04 09:07:15 +11:00
os_default_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
os_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
os_windows.go update tests 2022-01-04 09:07:15 +11:00
os_windows_test.go Fix windows tests 2023-04-13 13:14:00 +02:00