mut repository = (pwd | path expand) let args = ($env.CLI_ARGS? | default []) for pair in ($args | chunks 2) { if ($pair | first) == "--repository" { $repository = ($pair | last | path expand) } } const project = (path self | path dirname | path dirname | path expand) cd $project cargo build -p differ --locked ^target/debug/differ --repository $repository