Bläddra i källkod

Merge pull request #2515 from asgrim/patch-1

Add information on how to run scripts manually
Jordi Boggiano 11 år sedan
förälder
incheckning
fa60a9974a
1 ändrade filer med 8 tillägg och 0 borttagningar
  1. 8 0
      doc/articles/scripts.md

+ 8 - 0
doc/articles/scripts.md

@@ -115,3 +115,11 @@ PHP callback. This `Event` object has getters for other contextual objects:
 - `getName()`: returns the name of the event being fired as a string
 - `getIO()`: returns the current input/output stream which implements
 `Composer\IO\IOInterface` for writing to the console
+
+## Running scripts manually
+
+If you would like to run the scripts for an event manually, the syntax is:
+
+    $ composer run-script [--dev] [--no-dev] script
+
+For example `composer run-script post-install-cmd` will run any **post-install-cmd** scripts that have been defined.