dockerfile-cli
Simple tools for parsing Dockerfile and extracting data. Useful for command like LABEL.
Available Commands
dockerfile-cli search-label my*label
: Find the value of a wildcard label
search-label
Usage: cmd-search-label [options] <label>
Search the value of a label. The search value can contain wildcard (e.g. foo*bar).
Options:
-f, --filename <filename> Dockerfile filename (default: /home/merlin/Workspace/docker/helm-client/scripts/Dockerfile)
-a, --all Return all matching label separated by a new line (e.g. foo\nbar)
-i, --index <index> Return the matching value in the index (e.g. 1 mean first result
--assert exit(1) if no label found
-h, --help output usage information