Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: FormatTaskName #322

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/public/FormatTaskName.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function FormatTaskName {
.DESCRIPTION
This function takes either a string which represents a format string (formats using the -f format operator see "help about_operators") or it can accept a script block that has a single parameter that is the name of the task that will be executed.

.PARAMETER format
.PARAMETER Format
A format string or a scriptblock to execute

.EXAMPLE
Expand Down Expand Up @@ -88,8 +88,8 @@ function FormatTaskName {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
$format
$Format
)

$psake.context.Peek().config.taskNameFormat = $format
$psake.context.Peek().config.taskNameFormat = $Format
}