maddyblue / esc

A simple file embedder for Go
http://godoc.org/github.com/mjibson/esc
MIT License
637 stars 73 forks source link

-ignore flag only seems to check the CLI arguments #30

Closed deepakjois closed 7 years ago

deepakjois commented 7 years ago

I am invoking esc like:

esc -o static.go -modtime=1483228800 -ignore=".*server$" static

I have a folder, which contains files I want to ignore (in the above example a binary called static/server). However, the regex passed into the -ignore flag only checks whether the foldername static matches the regex. Is this intended? I was hoping all the files in the folder static would be matched against the regex

deepakjois commented 7 years ago

Please ignore my incorrect diagnosis of the problem above.

The real problem is that the quotes in the commandline invocation above are significant. I did not realise that was the case.