dockerfile-cli

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dockerfile-cli

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

11.6 kB

Total Files

19

Last publish

Collaborators

  • iam-merlin