sgotti / glide-vc

Glide vendor cleaner
MIT License
53 stars 10 forks source link

Add an option to keep additional files #15

Closed sgotti closed 8 years ago

sgotti commented 8 years ago

This patch adds the --keep option to specify a pattern to keep additional files inside needed packages.

The pattern match will be relative to the deeper vendor dir. Supports double star (**) patterns. (see https://golang.org/pkg/path/filepath/#Match and https://github.com/bmatcuk/doublestar).

Can be specified multiple times.

For example to keep all the files with json extension use the **/*.json pattern.

sgotti commented 8 years ago

/cc @s-urbaniak

s-urbaniak commented 8 years ago

LGTM :+1:

sgotti commented 8 years ago

@s-urbaniak Thanks! merging. Please let me know if all works correctly.