kitops
kitops copied to clipboard
Advanced filtering for unpack
Describe the problem you're trying to solve It should be possible to unpack only named artifacts from an artifact group. For instance, it should be possible to unpack only README.md from docs.
Describe the solution you'd like
Add a new flag to unpack
command like --filter
the value of the filter should be able to indicate the artifact type and a name/patch to match. Any names/paths that partially or fully to the filter should be extracted.
And example would be kit unpack --filter=code:*config.*
which would extract all the files that has "config." in the path names
- The flag should support glob patterns for flexibility.
- Ensure that the implementation is backward compatible. It should be possible to do
--filter:docs:*
to extract all docs layers.