-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aiken blueprint apply
works with the 1st parameter only
#927
Comments
That is the expected behavior. Parameters are applied one-by-one, and the command must be called multiple times. One for each parameter. This isn't set in stone, but I'd like to understand what problems does this cause? |
I get:
in the output and...
in the file, so the blueprint has been destroyed. Looks like there is some kind of a bug anyway. |
Oh, I see, there is the -o flag for this. But it's still a UX issue. It would be much better if it allowed setting all parameters within the same call step by step, and then asked for the filename to save, using the old one by default. This would provide a smoother and more user-friendly experience. |
@Fell-x27 thanks for the comments, we'll give this some thoughts and see what we can cook up using your advice |
Thanks. Just want to say - I'm totally in love with Aiken, guys! You did an amazing work! |
Recently the Options:
-i, --in <FILEPATH>
Optional path to the blueprint file to be used as input.
[default: plutus.json]
-o, --out <FILEPATH>
Optional relative filepath to the generated Plutus blueprint. Default to printing to stdout when omitted So assuming you have just one export PARAMS_1=....
...
export PARAMS_N=....
aiken blueprint apply -m my_module -v my_validator $PARAMS_1 -o plutus-tmp.json
aiken blueprint apply -m my_module -v my_validator $PARAMS_1 -i plutus-tmp.json -o plutus-tmp.json Although you need to manually (or write a bash for loop for all params) iterate through the params, it works well in a case like mine where I had multiple params and multiple networks to support: export PREPROD_PARAMS_1=....
...
export PREPROD_PARAMS_N=....
aiken blueprint apply -m my_module -v my_validator $PREPROD_PARAMS_1 -o plutus-preprod.json
aiken blueprint apply -m my_module -v my_validator $PREPROD_PARAMS_N -i plutus-preprod.json -o plutus-preprod.json
export MAINNET_PARAMS_1=....
...
export MAINNET_PARAMS_N=....
aiken blueprint apply -m my_module -v my_validator $MAINNET_PARAMS_1 -o plutus-mainnet.json
aiken blueprint apply -m my_module -v my_validator $MAINNET_PARAMS_N -i plutus-mainnet.json -o plutus-mainnet.json Again, not the perfect approach, but it works. You build you actual As I'm writing this it would be nice to be able to leverage the |
What Git revision are you using?
aiken v1.0.26-alpha+075668b
What operating system are you using, and which version?
Describe what the problem is?
The
aiken blueprint apply
asks only for the first parameter and ignores others.What should be the expected behavior?
The command should parse more than one parameter.
The text was updated successfully, but these errors were encountered: