markbates / pkger

Embed static files in Go binaries (replacement for gobuffalo/packr)
MIT License
1.19k stars 60 forks source link

Improve readability in pack command #32

Closed nlepage closed 5 years ago

nlepage commented 5 years ago

Hey it's me again :slightly_smiling_face:

I tried to improve the readability in pack.go.

The only thing I'm unsure about is whether it is dangerous or not to remove the call to os.RemoveAll(fp) before calling parser.Parse().

markbates commented 5 years ago

Any changes you want to make it easier to follow along, please. The CLI code definitely needs a bit of love.