garden-rs / garden

Garden grows and cultivates collections of Git trees ~ Official mirror of https://gitlab.com/garden-rs/garden
https://garden-rs.gitlab.io
MIT License
64 stars 9 forks source link

garden: add support for custom shell commands #26

Closed davvid closed 6 months ago

davvid commented 6 months ago

garden.shell can not be configured to arbitrary interpreter commands. We now run the value through the "shlex" parser to separate the string into individual command-line arguments.

Shorthand shell values are still supported and special-cased. Only when the command string expands to a command with multiple arguments we treat the command like a custom shell and disable the internal builtin arguments.