Merge pull request #12 from bannzai/fix/command/mark_of_file Fix/command/mark of file
Merge pull request #12 from bannzai/fix/command/mark_of_file
Fix/command/mark of file
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.
Using mint.
$ mint install bannzai/Teapot
First, Teapot necessary configuration file named teapot.yml. Teapot can prepare teapot.yml to under the current directory via $ teapot setup.
teapot.yml
$ 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
source
ignore
execute
__FILE__
Next, Teapot can be execute your shell command for each file when file modified for it according to teapot.yml configuration.
$ teapot start 🍵 Teapot start 🍵
For example, when you edit some file, teapot display result of $ ls -la to changed file.
$ ls -la
Teapot is released under the MIT license. See LICENSE for details.
Header logo is released CC BY-NC 4.0 license. Original design by noainoue.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Teapot
Teapot is command line tool writen by Swift.
It can be execute your shell command for each file, when file modified.
Required
Swift 5.0 or later. And it require to run on macOS.
Install
Using mint.
Usage
First, Teapot necessary configuration file named
teapot.yml
. Teapot can prepareteapot.yml
to under the current directory via$ teapot setup
.This will generate the following file:
source
is target file of listen to changing.ignore
is ignored target file of listen to changing.execute
is 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.yml
configuration.For example, when you edit some file, teapot display result of
$ ls -la
to changed file.LICENSE
Teapot is released under the MIT license. See LICENSE for details.
Header logo is released CC BY-NC 4.0 license. Original design by noainoue.