Skip to content

Commit

Permalink
docs(args): add default args documentaion
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Dec 12, 2017
1 parent cb5320c commit bb5f276
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ Configuration of DOPR can be done either via `package.json` under the `dopr` key
"host-cmd": {
"service": "@host",
"command": "docker-compose version"
},
"composer": {
"args": "install --prefer-dist --no-scripts",
"command": "%action% %args%"
}
}
}
Expand All @@ -100,6 +104,7 @@ Configuration of DOPR can be done either via `package.json` under the `dopr` key
- The `"actions".[$key]."command"` can be either array or string.
- The command can be reused or recalled by prefixing it with `@` (see sample above).
- The command that should run in host context will need `"service"` value of `"@host"` (see sample above).
- The action can optionally provide default arguments in `"args"` used to interpolate `%args%` when no other argument is provided (see `"composer"."args"` above).

## Usage

Expand Down

0 comments on commit bb5f276

Please sign in to comment.