Contributing to wbcmd
Source:.github/CONTRIBUTING.md
Thank you for considering contributing to wbcmd!
Adding new command wrappers
wbcmd aims to wrap all ~165 wb_command subcommands. Adding a new wrapper follows a consistent pattern:
- Create
R/wb_<domain>_<operation>.R(e.g.,R/wb_cifti_info.R) - Use
check_path()to validate input files - Use
validate_outfile()to prepare output paths - Call
wb_cmd()with the subcommand and arguments - Add tests in
tests/testthat/test-wb_<domain>_<operation>.R - Run
devtools::document()anddevtools::check()