- 1.0.3 and master184.108.40.206.04.2
- 1.0.3 and masteriOSmacOS(Intel)macOS(ARM)LinuxtvOSwatchOS
Teapot is command line tool writen by Swift.
It can be execute your shell command for each file, when file modified.
Swift 5.0 or later. And it require to run on macOS.
$ mint install bannzai/Teapot
First, Teapot necessary configuration file named
Teapot can prepare
teapot.yml to under the current directory via
$ teapot setup.
$ teapot setup 🍵 Teapot setup completion. You can edit ./teapot.yml 🍵
This will generate the following file:
source: - build/* - Sources/*.* - Sources/Teapot/*.* ignore: - ".git" - ".gitignore" - tests/* execute: - ls -la __FILE__ - echo $HOME
sourceis target file of listen to changing.
ignoreis ignored target file of listen to changing.
executeis exec shell command for changed target file.
__FILE__is mark of changed file. So, It is replaced when file changed.
Next, Teapot can be execute your shell command for each file when file modified for it according to
$ teapot start 🍵 Teapot start 🍵
For example, when you edit some file, teapot display result of
$ ls -la to changed file.