ipso
ipso copied to clipboard
Set environment variable when running command
The equivalent of KEY=value command in shell.
First iteration:
cmd.setvar : String -> String -> Cmd -> Cmd
`command`
|> cmd.withvar "KEY" "value"
|> cmd.run
In the future I'll consider adding KEY=value command syntax for command literals. A function is good enough for now.