Skip to content

Commit

Permalink
Merge branch 'gregmcguffey-gregmcguffey-patch-fix-table-formatting'
Browse files Browse the repository at this point in the history
  • Loading branch information
gep13 committed Apr 26, 2016
2 parents 40d759b + fb91cf4 commit 6d141d1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/structure-of-a-psake-build-script.md
Expand Up @@ -3,6 +3,7 @@ A psake build script contains calls to functions that the psake build engine wil
The functions are the following:

|Function|Description|Required|
|--------|-----------|--------|
|_Include()_|Call this function to have psake include the functions of another file into your script|no|
|_Properties()_|Call this function to set your properties|no|
|_Task()_|This is the main function that you write to execute a step in your build script. NOTE: There can be only one task function that is named "default" in your psake script and it cannot contain any code. psake will throw an exception if it finds more than one default task function or if the default task function contains code|yes|
Expand All @@ -15,7 +16,7 @@ The functions are the following:
An example psake script:
<hr/>

```
```PowerShell
Task default -Depends Test
Task Test -Depends Compile, Clean {
Expand All @@ -33,7 +34,8 @@ Task Clean {
<hr/>
<p>The following is a BNF for a psake build script:</p>

pre. <BuildScript> ::= <Includes>
```
<BuildScript> ::= <Includes>
| <Properties>
| <FormatTaskName>
| <TaskSetup>
Expand All @@ -56,4 +58,5 @@ pre. <BuildScript> ::= <Includes>
| -Description <StringLiteral>
<TaskNames> ::= <StringLiteral>, | <TaskNames>
<ScriptBlock> ::= { <PowerShellStatements> }
<Boolean> ::= $true | $false
<Boolean> ::= $true | $false
```

0 comments on commit 6d141d1

Please sign in to comment.