增加 首次运行提示
This commit is contained in:
parent
0cbe70408d
commit
61cf37763e
@ -195,6 +195,13 @@ func initWatcher() {
|
|||||||
func parseArgs() {
|
func parseArgs() {
|
||||||
l := len(os.Args)
|
l := len(os.Args)
|
||||||
if l == 1 {
|
if l == 1 {
|
||||||
|
_, err := ioutil.ReadFile(projectFolder + "/filegirl.yaml")
|
||||||
|
if err != nil {
|
||||||
|
log.Println("the filegirl.yaml file is not exist! ", err)
|
||||||
|
fmt.Print(firstRunHelp)
|
||||||
|
fmt.Print(helpStr)
|
||||||
|
return
|
||||||
|
}
|
||||||
initWatcher()
|
initWatcher()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user