eos icon indicating copy to clipboard operation
eos copied to clipboard

cleos should be able to read JSON from file for any command which takes JSON

Open moskvanaft opened this issue 8 years ago • 2 comments

Currently cleos push action and cleos push transactions doesn't not allow to to provide JSON file. Maybe there are other places like that.

ATC: Use push action and push transaction passing in both json strings and files with json and verify both behave as expected

moskvanaft avatar Apr 03 '18 22:04 moskvanaft

Currently, we can do:

programs/cleos/cleos push action -j currency transfer "$(cat test.json)" --permission currency@active

to pass in the contents of test.json

brianjohnson5972 avatar Apr 04 '18 16:04 brianjohnson5972

ATC passed.

PaulCalabrese avatar Apr 04 '18 20:04 PaulCalabrese