mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
3098112a41
For example, say there is a command 'foo' that has a subcommand 'bar'. Prior to this, it was not possible to run: ./mach foo as its own independent command. The above would instead print the subcommand help for 'bar'. MozReview-Commit-ID: JU4dXoxnCyu --HG-- extra : rebase_source : bb15532ad39456b270071bc60d7b15e15af04e48 |
||
---|---|---|
.. | ||
docs | ||
mach | ||
bash-completion.sh | ||
README.rst | ||
setup.py |
==== mach ==== Mach (German for *do*) is a generic command dispatcher for the command line. To use mach, you install the mach core (a Python package), create an executable *driver* script (named whatever you want), and write mach commands. When the *driver* is executed, mach dispatches to the requested command handler automatically. To learn more, read the docs in ``docs/``.