Ojo is a CLI toot that executes a given command each time a specified file or directory content is modified
Published: 18 Jan 2023
Ojo is a simple CLI tool that allows you to execute a specific command each time the specified file or directory is being modified.
Let's say that you are sick of running the following pandoc command
pandoc --toc -s test.md -o test.html each time you do some minor modifications to your
Ojo automates the command execution by specifying a file that is being watched and the command to be run each time the watched file is modified.
Specify the file and the command as shown below and voilà!
ojo test/test.md -x "pandoc --toc -s test/test.md -o test/test.html"