lazygit/pkg
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
..
app Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
cheatsheet Update cheatsheet 2023-05-21 11:31:29 +10:00
commands Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
common introduce Common struct for passing around common stuff 2022-01-04 09:07:15 +11:00
config Add config git.mainBranches 2023-05-16 13:20:03 +02:00
constants
env clearer separation of concerns when bootstrapping application 2022-05-07 16:02:04 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
i18n Update cheatsheet 2023-05-21 11:31:29 +10:00
integration Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
logs clearer separation of concerns when bootstrapping application 2022-05-07 16:02:04 +10:00
secureexec Cache binary paths 2023-05-23 19:15:33 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks prevent unnecessary re-renders of view 2023-04-02 15:44:05 +10:00
theme Support strikethrough text style 2023-05-21 10:46:13 +10:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Right-align key labels in menu 2023-05-21 12:09:43 +10:00