mikelangelo-project / capstan

Capstan, a tool for packaging and running your application on OSv.
http://osv.io/capstan/
Other
19 stars 7 forks source link

Support ! in .capstanignore #92

Open miha-plesko opened 6 years ago

miha-plesko commented 6 years ago

See this comment https://github.com/mikelangelo-project/capstan/issues/91#issuecomment-362343678 where @aitorhh requested such feature.

It wouldn't be too much of a trouble to at least support very basic functionality (without any wildcards):

# explicitly include specific file (must not contain *)
!/path/to/file.txt

# explicitly include whole directory and its content (must not contain *)
!/path/to/directory

@aitorhh would this be sufficient for your usecase?

aitorhh commented 6 years ago

Yes, I think allows the users to be more selective with the files that want to include. And allows a broader set of project structures to be used :)

Thanks!