bannzai/Teapot
<div align="center" > <img width="50%" src="logo/teapot_logo.png" /> </div>
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.
$ mint install bannzai/TeapotUsage
First, Teapot necessary configuration file named teapot.yml. 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 $HOMEsourceis target file of listen to changing.ignoreis ignored target file of listen to changing.executeis exec shell command for changed target file.FILEis 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.
$ teapot start
🍵 Teapot start 🍵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.<Paste>
Package Metadata
Repository: bannzai/Teapot
Stars: 31
Forks: 0
Open issues: 1
Default branch: master
Primary language: swift
License: MIT
README: README.md