go-aah / aah

A secure, flexible, rapid Go web framework
https://aahframework.org
MIT License
691 stars 33 forks source link

Add a find option in aah single binary #179

Closed jeevatkm closed 6 years ago

jeevatkm commented 6 years ago

The goal is to add a find option in aah's single binary.

What it means?

Once the single binary is build, there would be no easy way to know which files have got embedded into the binary. In real world scenario, it is important to have some mechanism to find out the contents. It could also be helpful for developers, devops, etc.

To achieve this, add a new flag -list in aah application binary

# For regex syntax refer to https://golang.org/pkg/regexp or run 'go doc regexp/syntax'
$ aahwebsite -list "regex"

# This would print the file path that matches the given regex pattern
jeevatkm commented 6 years ago

I did test drive of this implementation, it seems better to use Package rexexp instead of filepath.Match. Basically entire path match instead of only filepath base.

Update the above spec and implement it.

jeevatkm commented 6 years ago

Documentation done 😄