CLI Scripting
The Heyweek CLI (hw) is designed to be scriptable. Because every command is a plain executable that reads flags and writes to standard output, you can…
5 articles tagged
The Heyweek CLI (hw) is designed to be scriptable. Because every command is a plain executable that reads flags and writes to standard output, you can…
Advanced patterns, cron automation, testing, and best practices for Heyweek CLI scripts. Maintain state between runs by saving a value to a file. This…
Use Node.js and the child_process module to script the Heyweek CLI. Promisify exec and wrap hw in a helper that returns its output:
Drive the Heyweek CLI from Python with the subprocess module to automate your workflow. Wrap hw in a helper that runs a command and checks its exit code:
Wrap the Heyweek CLI in shell scripts to automate time tracking with loops, variables, and error handling. A simple script that ensures a timer is…