nervosnetwork / ckb-cli

CKB command line interface
MIT License
56 stars 35 forks source link

Support reading --privkey-path from process substitution #573

Open doitian opened 9 months ago

doitian commented 9 months ago

Expect this command to read privkey from the child process output.

ckb-cli account import --privkey-path <(echo 0x...)

But got this error:

error: Invalid value for '--privkey-path <privkey-path>': path </dev/fd/11> is not file

Related reference about process substitution: https://www.gnu.org/software/bash/manual/html_node/Process-Substitution.html

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.