This document is for developers working on the runbook application itself. If you're interested in using runbook, see the README.
To run without building first, use:
npx ts-node src/cli.ts ls # or any other runbook commandTo quickly test while developing this package, run:
npx ts-node src/cli.ts run hello --greeting Hey --name BatmanAlternatively, the package can be linked and run with the DEV=true environment variable to pick up the latest TypeScript source changes without the need to re-link the package.
npm link
DEV=true runbook run hello --greeting Hey --name BatmanHere's some fun - using runbook to run runbook to run the raw TypeScript version of runbook to run the "hello" command.
runbook run runbook run helloTo run all test cases:
npm run testHere is a command that always fails (useful for seeing how runbook handles errors):
exit 1