AutoRun
autorun
is a tool that listens for file changes and automatically executes specified commands. You can use autorun
to automatically compile and run code or update dependencies.
autorun
是一个监听文件变化并自动运行指定命令的工具,你可以使用autorun
自动编译运行代码,或者在依赖配置文件发生变化时自动刷新依赖。
Install
brew
brew install --build-from-source tbxark/repo/autorun
go
go install github.com/TBXark/autorun@latest
Usage
Usage of autorun:
-c string
Config file path (default "autorun.config")
-d string
Distance dir or file path (default ".")
Example
iOS project
{
"build": [],
"run": {
"name": "/usr/local/bin/pod",
"args": [
"update"
]
},
"include": {
"import": [
],
"pattern": [
"Podfile"
]
},
"exclude": {
"import": [
".gitignore"
],
"pattern": [
".temp",
".gitignore"
]
}
}
Author
tbxark, tbxark@outlook.com
License
FlexLayout is available under the MIT license. See the LICENSE file for more info.