Skip to content

KM911/hotpot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hotpot ♨️ let you eat hot tofu.

Watch file change and execute command.

中文文档

Demo

Restart Web Server

hotpot could help you write web server or run test code.

demo

Install

  1. download the binary from github release
  2. build from source . Need go 1.18
  3. go install
go install githuh.com/KM911/hotpot@latest

Configuration

Delay = 2000
Command = 'go build'
WatchFiles = ['go'] # only watch xx.go files change 
IgnoreFolders = ['node_modules', 'vendor', '.git', '.idea', '.vscode', 'log', 'build', 'dist', 'bin', 'public', 'target', 'output']
ShowEvent = false
Github = 'https://github.com/KM911/hotpot'

Acknowledgments

This project uses the following projects, for which I am grateful. Without their open source contributions, this project would not have been possible.

GitHub - fsnotify/fsnotify: Cross-platform file system notifications for Go.

GitHub - pelletier/go-toml: Go library for the TOML file format