ipso icon indicating copy to clipboard operation
ipso copied to clipboard

Set environment variable when running command

Open LightAndLight opened this issue 3 years ago • 0 comments

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.

LightAndLight avatar Nov 25 '22 22:11 LightAndLight