Thanks for your interest in contributing to BitAuth CLI! We're excited to work with you.
Here's some information to help you get started.
To install your modified version of BitAuth CLI, use Yarn link:
# clone the repo
git clone https://github.com/bitauth/bitauth-cli.git
cd bitauth-cli/
#install dependencies
yarn
# replace your global `bitauth` with this project:
yarn linkThe package scripts in package.json include a lot of useful commands, run them with yarn:
# run the tests:
yarn test
# automatically fix formatting, eslint errors:
yarn fix
# etc.We use the Oclif CLI framework, check out their documentation to get up to speed quickly.
You can debug commands using the $DEBUG environment variable. Set it to the scope you're interested in, or use * for full logging.
# full logging:
env DEBUG=\* bitauth init --help
# filter by `bitauth`:
env DEBUG="bitauth" bitauth init --helpyarn packyarn readmeThis also happens automatically during yarn pack.
First, follow the regular instructions from bitauth autocomplete. If you make changes to the CLI which must change the autocomplete, simply re-run:
# regenerate completions
bitauth autocomplete:scriptYou can ignore the output; the completions will be regenerated in-place.
Delete the oclif.manifest.json, since it will be used if present. (It was generated by the prepack script.)