Closed ccxuy closed 2 months ago
I think maybe a .env file would work for you:
$ cat justfile
set dotenv-load
foo:
echo $A
$ cat .env
A=2
$ just
echo $A
2
How to auto save dotenv? Besides some gramma seems not fully compatible, but source .env
in every recipes work.
just --unstable show_basic
error: Failed to load environment file: Error parsing line: '([0]="2" [1]="11")', error at line index: 9
Failed at 35: just --unstable show_basic
@casey
I want to do something like this:
(I thinks
just modA funcB a=1 b=2
is better)what I could do now is
(which call
funcB $a $b
, but this would pass variables over all receipts)maybe some other better way to do this is
if we can determin scope and namespace of variable is better