Variables

You can specify variables in the vars: array in your Pakefile. Use it in your action with the following syntax: %{var}. Users can override them from command line.

Example

Pakefile:
vars:
  foo: spam
  bar: eggs

default:
  shell:
    echo %{foo} %{bar}
Usage:
$ pake
spam eggs
$ pake foo=bacon
bacon eggs

Notes

  • Variables can NOT contain other variables

Table Of Contents

Previous topic

Creating Pakefiles

This Page