ckb-js / kuai

A protocol and framework for building universal dapps on Nervos CKB
MIT License
22 stars 11 forks source link

Check/install `ckb-cli` before using it #289

Open Keith-CY opened 1 year ago

Keith-CY commented 1 year ago

When using contract-related functions, it is assumed that ckb-cli is already installed on the user's computer. This assumption increases the usage threshold and adds unnecessary cognitive costs. kuai-cli can detect the environment before calling ckb-cli, and prompt the user with a [yes/no] option to automatically install ckb-cli.

Keith-CY commented 1 year ago

PR: https://github.com/ckb-js/kuai/pull/301